Ignore:
Timestamp:
Feb 5, 2015, 4:18:25 PM (10 years ago)
Author:
steve
Message:

cleaned up some polt tests to avoid needed DISPLAY variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/anuga/geometry/polygon.py

    r9214 r9615  
    724724       
    725725
    726     from matplotlib.pyplot import hold, plot, savefig, xlabel, \
     726
     727    try:
     728        import matplotlib
     729        matplotlib.use('Agg')
     730        from matplotlib.pyplot import hold, plot, savefig, xlabel, \
    727731                    ylabel, title, close, title, fill
     732    except:
     733        return
    728734
    729735    assert type(polygons_points) == list, \
     
    780786    #ioff()
    781787    hold(False)
     788   
    782789    close('all')
    783790
Note: See TracChangeset for help on using the changeset viewer.