Changeset 2538 for trunk/python/asaplotbase.py
- Timestamp:
- 05/18/12 19:44:44 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asaplotbase.py
r2451 r2538 12 12 from matplotlib import rc, rcParams 13 13 from matplotlib.ticker import OldScalarFormatter 14 from matplotlib import _pylab_helpers 14 15 15 16 from asap.parameters import rcParams as asaprcParams … … 850 851 rotation=rotate,transform = trans) 851 852 self.axes.set_autoscale_on(True) 853 854 def _alive(self): 855 # Return True if the GUI alives. 856 if (not self.is_dead) and \ 857 self.figmgr and hasattr(self.figmgr, "num"): 858 figid = self.figmgr.num 859 # Make sure figid=0 is what asapplotter expects. 860 # It might be already destroied/overridden by matplotlib 861 # commands or other methods using asaplot. 862 return _pylab_helpers.Gcf.has_fignum(figid) and \ 863 (self.figmgr == _pylab_helpers.Gcf.get_fig_manager(figid)) 864 return False
Note: See TracChangeset
for help on using the changeset viewer.