Changeset 2535 for trunk/python
- Timestamp:
- 05/17/12 19:00:47 (13 years ago)
- Location:
- trunk/python
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapfitter.py
r2451 r2535 549 549 self._p.hold() 550 550 self._p.clear() 551 rcp('lines', linewidth=1) 551 552 self._p.set_panels() 552 553 self._p.palette(0) -
trunk/python/asapmath.py
r2472 r2535 312 312 asaplog.post('WARN') 313 313 p=new_asaplot() 314 rcp('lines', linewidth=1) 314 315 #nr=min(6,len(ifnos)*len(polnos)) 315 316 nr=len(ifnos)*len(polnos) … … 531 532 asaplog.post('WARN') 532 533 p=new_asaplot() 534 rcp('lines', linewidth=1) 533 535 #nr=min(6,len(ifnos)*len(polnos)) 534 536 nr=len(ifnos)*len(polnos) … … 741 743 asaplog.post('WARN') 742 744 p=new_asaplot() 745 rcp('lines', linewidth=1) 743 746 #nr=min(6,len(ifnos)*len(polnos)) 744 747 nr=len(ifnos)/2*len(polnos) -
trunk/python/asapplotter.py
r2453 r2535 6 6 from matplotlib.font_manager import FontProperties 7 7 from matplotlib.text import Text 8 from matplotlib import _pylab_helpers 8 9 9 10 import re … … 86 87 return None 87 88 89 @asaplog_post_dec 88 90 def _reload_plotter(self): 89 91 if self._plotter is not None: 90 if not self._plotter.is_dead: 91 # clear lines and axes 92 self._plotter.clear() 92 #if not self._plotter.is_dead: 93 # # clear lines and axes 94 # try: 95 # self._plotter.clear() 96 # except: # Can't remove when already killed. 97 # pass 93 98 if self.casabar_exists(): 94 99 del self._plotter.figmgr.casabar 95 100 self._plotter.quit() 96 101 del self._plotter 102 asaplog.push('Loading new plotter') 97 103 self._plotter = new_asaplot(self._visible,**self._inikwg) 98 104 self._plotter.figmgr.casabar=self._new_custombar() … … 134 140 when plot window is not alive. 135 141 """ 136 if self._plotter and not self._plotter.is_dead: 142 isAlive = (self._plotter != None and not self._plotter.is_dead) 143 # More tests 144 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 157 if isAlive: 137 158 return True 138 159 # Plotter is not alive. -
trunk/python/scantable.py
r2480 r2535 2265 2265 from asap.asapplotter import new_asaplot 2266 2266 theplot = new_asaplot(rcParams['plotter.gui']) 2267 from matplotlib import rc as rcp 2268 rcp('lines', linewidth=1) 2267 2269 theplot.set_panels() 2268 2270 ylab=s._get_ordinate_label() … … 2336 2338 # from asap.asapplotter import new_asaplot 2337 2339 # theplot = new_asaplot(rcParams['plotter.gui']) 2340 # from matplotlib import rc as rcp 2341 # rcp('lines', linewidth=1) 2338 2342 # theplot.set_panels() 2339 2343 # ylab=s._get_ordinate_label()
Note:
See TracChangeset
for help on using the changeset viewer.