Changeset 782 for branches/Release12


Ignore:
Timestamp:
12/07/05 14:40:43 (18 years ago)
Author:
mar637
Message:

Bug fix: autoscale abcissa limits from all spectra for stacking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release12/python/asapplotter.py

    r759 r782  
    148148        else:
    149149            self._plotter.set_panels()
     150        allxlim=[]
    150151        rows = self._cursor["t"]
    151152        rows = rows[:n]
     
    228229                if self._minmaxx is not None:
    229230                    xlim = self._minmaxx
    230                 self._plotter.axes.set_xlim(xlim)
     231                allxlim += xlim
     232            allxlim.sort()
     233            self._plotter.axes.set_xlim([allxlim[0],allxlim[-1]])
    231234            self._plotter.set_axes('xlabel',xlab)
    232235            self._plotter.set_axes('ylabel',ylab)
    233236            self._plotter.set_axes('title',tlab)
     237
    234238        return
    235239
     
    269273            colvals = eval(cdict2.get(colmode))
    270274            rowsel = self._cursor["t"][0]
     275            allxlim=[]
    271276            for j in colvals:
    272277                polmode = "raw"
     
    331336                if self._minmaxx is not None:
    332337                    xlim = self._minmaxx
    333                 self._plotter.axes.set_xlim(xlim)
    334 
     338                allxlim += xlim
     339            allxlim.sort()
     340            self._plotter.axes.set_xlim([allxlim[0],allxlim[-1]])
    335341            self._plotter.set_axes('xlabel',xlab)
    336342            self._plotter.set_axes('ylabel',ylab)
     
    377383            eval(cdict.get(self._panelling))
    378384
     385            allxlim=[]
    379386            colvals = eval(cdict2.get(colmode))
    380387            for j in colvals:
     
    470477                if self._minmaxx is not None:
    471478                    xlim = self._minmaxx
    472                 self._plotter.axes.set_xlim(xlim)
     479                allxlim += xlim
     480            allxlim.sort()
     481            self._plotter.axes.set_xlim([allxlim[0],allxlim[-1]])
    473482
    474483            self._plotter.set_axes('xlabel',xlab)
Note: See TracChangeset for help on using the changeset viewer.