Changeset 597


Ignore:
Timestamp:
04/29/05 14:01:41 (19 years ago)
Author:
mar637
Message:

Fixed asap0008 and asap0014

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release-1-fixes/python/asapplotter.py

    r557 r597  
    6868        if self._plotter.is_dead:
    6969            self._plotter = ASAPlot()
     70        self._plotter.hold()
    7071        self._plotter.clear()
    71         self._plotter.hold()
    7272        if len(args) > 0:
    7373            if self._data is not None:               
     
    108108        if self._stacking is not None:
    109109            ncol = eval(self._cdict.get(colmode))
    110         self._plotter.set_panels()
    111110        if n > 1:
    112111            if self._rows and self._cols:
     
    116115            else:
    117116                self._plotter.set_panels(rows=n,cols=0,nplots=n)
     117        else:
     118            self._plotter.set_panels()
    118119        rows = self._cursor["t"]
    119120        self._plotter.palette(1)
     
    206207            scan = scans[0]
    207208            ncol = eval(self._cdict.get(colmode))
    208         self._plotter.set_panels()
    209209        if n > 1:
    210210            if self._rows and self._cols:
     
    214214            else:
    215215                self._plotter.set_panel(rows=n,cols=0,nplots=n)
     216        else:
     217            self._plotter.set_panels()
    216218        for scan in scans:
    217219            self._plotter.palette(1)
     
    299301        if self._stacking is not None:           
    300302            ncol = eval(self._cdict.get(colmode))
    301         self._plotter.set_panels()
    302303        if n > 1:
    303304            if self._rows and self._cols:
     
    307308            else:
    308309                self._plotter.set_panels(rows=n,cols=0,nplots=n)
     310        else:
     311            self._plotter.set_panels()           
    309312        panels = self._cursor[self._panelling]       
    310313        for i in panels:
     
    485488        if xstart is None and xend is None:
    486489            self._minmaxx = None
    487             if self._data: self.plot()
    488             return
     490        else:
     491            self._minmaxx = [xstart,xend]
    489492        if ystart is None and yend is None:
    490493            self._minmaxy = None
    491             if self._data: self.plot()
    492             return
    493         self._minmaxx = [xstart,xend]
    494         self._minmaxy = [ystart,yend]
     494        else:
     495            self._minmaxy = [ystart,yend]           
    495496        if self._data: self.plot()
    496497        return
Note: See TracChangeset for help on using the changeset viewer.