Changeset 2538 for trunk/python/asapplotter.py
- Timestamp:
- 05/18/12 19:44:44 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r2535 r2538 140 140 when plot window is not alive. 141 141 """ 142 isAlive = (self._plotter != None and not self._plotter.is_dead)142 isAlive = (self._plotter is not None) and self._plotter._alive() 143 143 # More tests 144 if isAlive:145 if self._plotter.figmgr:146 figmgr = self._plotter.figmgr147 figid = figmgr.num148 # Make sure figid=0 is what asapplotter expects.149 # It might be already destroied/overridden by matplotlib150 # commands or other plotting methods using asaplot.151 isAlive = _pylab_helpers.Gcf.has_fignum(figid) and \152 (figmgr == \153 _pylab_helpers.Gcf.get_fig_manager(figid))154 else:155 isAlive = False144 #if isAlive: 145 # if self._plotter.figmgr: 146 # figmgr = self._plotter.figmgr 147 # figid = figmgr.num 148 # # Make sure figid=0 is what asapplotter expects. 149 # # It might be already destroied/overridden by matplotlib 150 # # commands or other plotting methods using asaplot. 151 # isAlive = _pylab_helpers.Gcf.has_fignum(figid) and \ 152 # (figmgr == \ 153 # _pylab_helpers.Gcf.get_fig_manager(figid)) 154 # else: 155 # isAlive = False 156 156 157 157 if isAlive:
Note: See TracChangeset
for help on using the changeset viewer.