Changeset 1023 for trunk/python/asapplotter.py
- Timestamp:
- 04/19/06 11:43:15 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r1021 r1023 37 37 self._maskselection = None 38 38 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 43 41 def _translate(self, instr): 44 42 keys = "s b i p t".split() … … 272 270 plotter.histogram 273 271 """ 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 278 275 def set_linestyles(self, linestyles): 279 276 """ … … 478 475 llbl = self._get_label(scan, r, self._stacking, None) 479 476 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) 482 480 xlim= self._minmaxx or [min(x),max(x)] 483 481 allxlim += xlim
Note: See TracChangeset
for help on using the changeset viewer.