Changeset 9687d58 in sasview for src/sas/sasgui/plottools
- Timestamp:
- Apr 10, 2017 4:01:46 AM (8 years ago)
- Branches:
- 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
- Children:
- 6c8fb2c
- Parents:
- 9208346 (diff), c6f3aec (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- src/sas/sasgui/plottools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/plottools/PlotPanel.py
rcad617b r9687d58 452 452 """ 453 453 self.cusor_line(event) 454 if self.gotLegend == 1 :454 if self.gotLegend == 1 and self.leftdown: 455 455 self._on_legend_motion(event) 456 456 return -
src/sas/sasgui/plottools/plottables.py
rcad617b r9687d58 212 212 self.color += plottable.colors() 213 213 self.plottables[plottable] = self.color 214 plottable.custom_color = self.color 214 215 215 216 def changed(self): -
src/sas/sasgui/plottools/config.py
rd7bb526 r092a3d9 30 30 __all__ = [] 31 31 32 plot_version = "0.98" 33 plot_backend = "WXAgg" 32 #plot_version = "0.98" 33 #plot_backend = "WXAgg" 34 plot_backend = "Qt4Agg" 34 35 35 36 # Sort out matplotlib version 36 37 import matplotlib 37 try:38 import pkg_resources39 pkg_resources.require("matplotlib>=" + plot_version)40 except:41 from distutils.version import LooseVersion as Version42 if Version(matplotlib.__version__) < Version(plot_version):43 msg = "Matplotlib version must be %s or newer" % (plot_version, )44 raise ImportError(msg)38 #try: 39 # import pkg_resources 40 # pkg_resources.require("matplotlib>=" + plot_version) 41 #except: 42 # from distutils.version import LooseVersion as Version 43 # if Version(matplotlib.__version__) < Version(plot_version): 44 # msg = "Matplotlib version must be %s or newer" % (plot_version, ) 45 # raise ImportError(msg) 45 46 46 47 # Sort out matplotlib backend … … 51 52 elif matplotlib.get_backend() != plot_backend: 52 53 # if a backend has already been selected, make sure it is the correct one. 53 raise ImportError("Matplotlib not using backend " + plot_backend) 54 #raise ImportError("Matplotlib not using backend " + plot_backend) 55 pass 54 56 55 57 # set global plot style … … 58 60 matplotlib.rcParams[param] = 0.05 59 61 matplotlib.rcParams['legend.numpoints'] = 1 62 #matplotlib.rcParams['interactive'] = True 63 60 64 61 65 # this should happen after initial matplotlib configuration 62 from .toolbar import NavigationToolBar63 from matplotlib.backends import backend_wxagg64 backend_wxagg.NavigationToolbar2WxAgg = NavigationToolBar66 #from .toolbar import NavigationToolBar 67 #from matplotlib.backends import backend_wxagg 68 #backend_wxagg.NavigationToolbar2WxAgg = NavigationToolBar 65 69 66 70 # CRUFT: bumps 0.7.5.6 and older uses wrong toolbar 67 backend_wxagg.NavigationToolbar2Wx = NavigationToolBar71 #backend_wxagg.NavigationToolbar2Wx = NavigationToolBar -
src/sas/sasgui/plottools/toolbar.py
rd7bb526 r092a3d9 35 35 36 36 # CRUFT: mpl 1.1 uses save rather than save_figure 37 try: save_figure = NavigationToolbar2WxAgg.save38 except AttributeError: pass37 #try: save_figure = NavigationToolbar2WxAgg.save 38 #except AttributeError: pass 39 39 40 40 def _init_toolbar(self):
Note: See TracChangeset
for help on using the changeset viewer.