Changeset 6d05e1d in sasview for src/sas/sasgui/plottools


Ignore:
Timestamp:
Dec 6, 2016 5:39:24 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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)
Message:

More functionality for quick plots + unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/plottools/config.py

    rd7bb526 r6d05e1d  
    3535# Sort out matplotlib version 
    3636import matplotlib 
    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) 
     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) 
    4545 
    4646# Sort out matplotlib backend 
     
    5151elif matplotlib.get_backend() != plot_backend: 
    5252    # 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 
    5455 
    5556# set global plot style 
Note: See TracChangeset for help on using the changeset viewer.