Ignore:
Timestamp:
04/19/06 11:43:15 (18 years ago)
Author:
mar637
Message:

The previous histogram plot was mutually exclusive with linestyle, so I am using asapplotbase.hist intead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapplotter.py

    r1021 r1023  
    3737        self._maskselection = None
    3838        self._selection = selector()
    39         self._hist = None
    40         if rcParams['plotter.histogram']: self._hist = "steps"
    41         else: self._hist = "-"
    42        
     39        self._hist = rcParams['plotter.histogram']
     40
    4341    def _translate(self, instr):
    4442        keys = "s b i p t".split()
     
    272270                         plotter.histogram
    273271        """
    274         if hist: self._hist = "steps"
    275         else: self._hist = "-"
    276         if self._data: self.plot(self._data)
    277            
     272        self._hist = hist
     273        if self._data: self.plot(self._data)
     274
    278275    def set_linestyles(self, linestyles):
    279276        """
     
    478475                        llbl = self._get_label(scan, r, self._stacking, None)
    479476                self._plotter.set_line(label=llbl)
    480                 self._plotter.set_line(linestyle=self._hist)
    481                 self._plotter.plot(x,y,m)
     477                plotit = self._plotter.plot
     478                if self._hist: plotit = self._plotter.hist
     479                plotit(x,y,m)
    482480                xlim= self._minmaxx or [min(x),max(x)]
    483481                allxlim += xlim
Note: See TracChangeset for help on using the changeset viewer.