Changeset 1995 for trunk/python
- Timestamp:
- 02/16/11 21:06:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r1989 r1995 85 85 #from asap.casatoolbar import CustomFlagToolbarTkAgg 86 86 #return CustomFlagToolbarTkAgg(self) 87 else:return None87 return None 88 88 89 89 @asaplog_post_dec … … 949 949 else: 950 950 y = scan._getspectrum(r) 951 m = scan._getmask(r) 952 from numpy import logical_not, logical_and 953 if self._maskselection and len(self._usermask) == len(m): 954 if d[self._stacking](r) in self._maskselection[self._stacking]: 955 m = logical_and(m, self._usermask) 951 # flag application 952 mr = scan._getflagrow(r) 956 953 from numpy import ma, array 954 if mr: 955 y = ma.masked_array(y,mask=mr) 956 else: 957 m = scan._getmask(r) 958 from numpy import logical_not, logical_and 959 if self._maskselection and len(self._usermask) == len(m): 960 if d[self._stacking](r) in self._maskselection[self._stacking]: 961 m = logical_and(m, self._usermask) 962 y = ma.masked_array(y,mask=logical_not(array(m,copy=False))) 963 957 964 x = array(scan._getabcissa(r)) 958 965 if self._offset: 959 966 x += self._offset 960 y = ma.masked_array(y,mask=logical_not(array(m,copy=False)))961 967 if self._minmaxx is not None: 962 968 s,e = self._slice_indeces(x) … … 978 984 plotit = self._plotter.plot 979 985 if self._hist: plotit = self._plotter.hist 980 if len(x) > 0 :986 if len(x) > 0 and not mr: 981 987 plotit(x,y) 982 988 xlim= self._minmaxx or [min(x),max(x)]
Note:
See TracChangeset
for help on using the changeset viewer.