- Timestamp:
- 03/30/09 11:00:13 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asaplotbase.py
r1546 r1553 155 155 from matplotlib.numerix import array 156 156 from matplotlib.numerix.ma import MaskedArray 157 157 158 if x is None: 158 159 if y is None: return … … 166 167 y2 = range(l2) 167 168 m2 = range(l2) 168 ymsk = y.raw_mask() 169 ydat = y.raw_data() 169 ymsk = None 170 ydat = None 171 if hasattr(y, "raw_mask"): 172 # numpy < 1.1 173 ymsk = y.raw_mask() 174 ydat = y.raw_data() 175 else: 176 ymsk = y.mask 177 ydat = y.data 178 170 179 for i in range(l2): 171 180 x2[i] = x[i/2] … … 289 298 def get_point(self): 290 299 print "Please select the point" 291 return self.figure.ginput(n=1, show_clicks=False)[0] 300 pt = self.figure.ginput(n=1, show_clicks=False) 301 if pt: 302 return pt[0] 303 else: 304 return None 292 305 293 306 def region(self):
Note:
See TracChangeset
for help on using the changeset viewer.