Changeset 1018


Ignore:
Timestamp:
04/18/06 15:54:44 (18 years ago)
Author:
mar637
Message:

added yrange synch in 'ganged' mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapplotter.py

    r1002 r1018  
    8989        self._plot(self._data)
    9090        if self._minmaxy is not None:
    91             print "setting limits"
    9291            self._plotter.set_limits(ylim=self._minmaxy)
    9392        self._plotter.release()
     
    397396        a0,b0 = -1,-1
    398397        allxlim = []
     398        allylim = []
    399399        newpanel=True
    400400        panelcount,stackcount = 0,0
     
    458458                xlim= self._minmaxx or [min(x),max(x)]
    459459                allxlim += xlim
     460                ylim= self._minmaxy or [min(y),max(y)]
     461                allylim += ylim
    460462                stackcount += 1
    461463                # last in colour stack -> autoscale x
     
    471473            # ignore following rows
    472474            if (panelcount == n) and (stackcount == nstack):
     475                # last panel -> autoscale y if ganged
     476                if rcParams['plotter.ganged']:
     477                    allylim.sort()
     478                    self._plotter.set_limits(ylim=[allylim[0],allylim[-1]])
    473479                break
    474480            r+=1 # next row
Note: See TracChangeset for help on using the changeset viewer.