Changeset 001b930 in sasview


Ignore:
Timestamp:
Dec 6, 2011 12:58:42 PM (13 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
cb8a972
Parents:
b7cfa8d
Message:

Fix plotpanel matplotlib requirement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plottools/src/danse/common/plottools/PlotPanel.py

    r82a54b8 r001b930  
    66# Try a normal import first 
    77# If it fails, try specifying a version 
    8 try: 
    9     import matplotlib 
    10     # Check version 
    11     toks = matplotlib.__version__.split('.') 
    12     if len(toks) < 3 or int(toks[1]) < 98: 
    13         raise RuntimeError, "PlotPanel depends on matplotlib > 0.98" 
    14 except: 
    15     logging.warning("Could not load matplotlib: trying setuptools") 
    16     import pkg_resources 
    17     pkg_resources.require("matplotlib>=0.98.1") 
    18     import matplotlib 
    19  
     8import matplotlib 
    209matplotlib.interactive(False) 
    2110#Use the WxAgg back end. The Wx one takes too long to render 
Note: See TracChangeset for help on using the changeset viewer.