Changeset 1550 for trunk/python
- Timestamp:
- 03/27/09 16:19:31 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r1549 r1550 101 101 return 102 102 103 def refresh(self): 104 self._plotter.figure.show() 105 103 106 def create_mask(self, **kwargs): 104 107 nwindows = 1 … … 111 114 marg = 0.05*(xmax-xmin) 112 115 self._plotter.axes.set_xlim(xmin-marg, xmax+marg) 113 self. _plotter.show(False)114 116 self.refresh() 117 115 118 for w in xrange(nwindows): 116 119 wpos = [] 120 self.text(0.05,0.95, "Add mask boundary", coords="relative") 117 121 wpos.append(self._plotter.get_point()[0]) 122 del self._plotter.axes.texts[-1] 118 123 self.axvline(wpos[0], **kwargs) 119 124 wpos.append(self._plotter.get_point()[0])
Note:
See TracChangeset
for help on using the changeset viewer.