Changeset 935 for trunk


Ignore:
Timestamp:
03/27/06 19:33:48 (19 years ago)
Author:
mar637
Message:

re-introduced re-plot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapplotter.py

    r920 r935  
    5555
    5656
    57     def plot(self, scan):
     57    def plot(self, scan=None):
    5858        """
    5959        Plot a scantable.
     
    7171        self._plotter.clear()
    7272        from asap import scantable
     73        if not self._data and not scan:
     74            print "please provide a scantable to plot"
    7375        if isinstance(scan, scantable):
    7476            if self._data is not None:
     
    8183                self._reset()
    8284        # 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():
    8486            self._minmaxx = None
    8587            self._minmaxy = None
     
    8890        self._plot(self._data)
    8991        if self._minmaxy is not None:
     92            print "setting limits"
    9093            self._plotter.set_limits(ylim=self._minmaxy)
    9194        self._plotter.release()
Note: See TracChangeset for help on using the changeset viewer.