- Timestamp:
- 03/27/06 19:33:48 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r920 r935 55 55 56 56 57 def plot(self, scan ):57 def plot(self, scan=None): 58 58 """ 59 59 Plot a scantable. … … 71 71 self._plotter.clear() 72 72 from asap import scantable 73 if not self._data and not scan: 74 print "please provide a scantable to plot" 73 75 if isinstance(scan, scantable): 74 76 if self._data is not None: … … 81 83 self._reset() 82 84 # ranges become invalid when unit changes 83 if self._abcunit != self._data.get_unit():85 if self._abcunit and self._abcunit != self._data.get_unit(): 84 86 self._minmaxx = None 85 87 self._minmaxy = None … … 88 90 self._plot(self._data) 89 91 if self._minmaxy is not None: 92 print "setting limits" 90 93 self._plotter.set_limits(ylim=self._minmaxy) 91 94 self._plotter.release()
Note:
See TracChangeset
for help on using the changeset viewer.