Changeset 6d05e1d in sasview for src/sas/sasgui/plottools
- Timestamp:
- Dec 6, 2016 5:39:24 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:
- 55d89f8
- Parents:
- b94889a
- git-author:
- Piotr Rozyczko <rozyczko@…> (12/06/16 05:38:55)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (12/06/16 05:39:24)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/plottools/config.py
rd7bb526 r6d05e1d 35 35 # Sort out matplotlib version 36 36 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)37 #try: 38 # import pkg_resources 39 # pkg_resources.require("matplotlib>=" + plot_version) 40 #except: 41 # from distutils.version import LooseVersion as Version 42 # if Version(matplotlib.__version__) < Version(plot_version): 43 # msg = "Matplotlib version must be %s or newer" % (plot_version, ) 44 # raise ImportError(msg) 45 45 46 46 # Sort out matplotlib backend … … 51 51 elif matplotlib.get_backend() != plot_backend: 52 52 # if a backend has already been selected, make sure it is the correct one. 53 raise ImportError("Matplotlib not using backend " + plot_backend) 53 #raise ImportError("Matplotlib not using backend " + plot_backend) 54 pass 54 55 55 56 # set global plot style
Note: See TracChangeset
for help on using the changeset viewer.