Changeset 1548 for trunk/python
- Timestamp:
- 03/27/09 16:09:36 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r1547 r1548 103 103 def create_mask(self, **kwargs): 104 104 nwindows = 1 105 panel = kwargs.get("panel", 0) 105 106 if kwargs.has_key("nwindows"): 106 107 nwindows = kwargs.pop("nwindows") 107 108 outmask = [] 109 xmin, xmax = self._plotter.subplots[panel]['axes'].get_xlim() 110 marg = 0.05*(xmax-xmin) 111 self._plotter.subplots[panel]['axes'].set_xlim(xmin-marg, xmax+marg) 112 108 113 for w in xrange(nwindows): 109 114 wpos = []
Note:
See TracChangeset
for help on using the changeset viewer.