Changeset cafa75f in sasview for src/sans/plottools/config.py


Ignore:
Timestamp:
Apr 2, 2014 4:04:01 PM (10 years ago)
Author:
pkienzle
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
1829835
Parents:
6771d94
Message:

support old and new versions of matplotlib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sans/plottools/config.py

    ra9d5684 rcafa75f  
    5252    # if a backend has already been selected, make sure it is the correct one. 
    5353    raise ImportError("Matplotlib not using backend " + plot_backend) 
     54 
     55# set global plot style 
     56param = 'legend.handletextpad' 
     57if param not in matplotlib.rcParams: param = 'legend.handletextsep' 
     58matplotlib.rcParams[param] = 0.05 
     59matplotlib.rcParams['legend.numpoints'] = 1 
Note: See TracChangeset for help on using the changeset viewer.