Changeset 1568 for trunk/python
- Timestamp:
- 06/29/09 11:28:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asaplotbase.py
r1563 r1568 147 147 from matplotlib.numerix import array 148 148 from matplotlib.numerix.ma import MaskedArray 149 149 150 150 if x is None: 151 151 if y is None: return … … 282 282 def get_region(self): 283 283 pos = [] 284 print "Please select the bottom/left point" 284 print "Please select the bottom/left point" 285 285 pos.append(self.figure.ginput(n=1, show_clicks=False)[0]) 286 print "Please select the top/right point" 286 print "Please select the top/right point" 287 287 pos.append(self.figure.ginput(n=1, show_clicks=False)[0]) 288 288 return pos 289 289 290 290 def get_point(self): 291 print "Please select the point" 291 print "Please select the point" 292 292 pt = self.figure.ginput(n=1, show_clicks=False) 293 293 if pt: … … 459 459 print 'Written file %s' % (fname) 460 460 except IOError, msg: 461 print 'Failed to save %s: Error msg was\n\n%s' % (fname, err)461 print 'Failed to save %s: Error msg was\n\n%s' % (fname, msg) 462 462 return 463 463 else: … … 644 644 cols, i+1) 645 645 if asaprcParams['plotter.axesformatting'] != 'mpl': 646 646 647 647 self.subplots[i]['axes'].xaxis.set_major_formatter(OldScalarFormatter()) 648 648 else:
Note:
See TracChangeset
for help on using the changeset viewer.