Changeset 1087 for trunk/python
- Timestamp:
- 07/27/06 14:39:36 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r1034 r1087 455 455 m = logical_and(m, self._usermask) 456 456 x = scan._getabcissa(r) 457 from matplotlib.numerix import ma,logical_not,array 458 y = ma.MA.MaskedArray(y,mask=logical_not(array(m,copy=0)),copy=0) 457 459 if self._minmaxx is not None: 458 460 s,e = self._slice_indeces(x) 459 461 x = x[s:e] 460 462 y = y[s:e] 461 m = m[s:e]462 463 if len(x) > 2048 and rcParams['plotter.decimate']: 463 464 fac = len(x)/2048 464 465 x = x[::fac] 465 m = m[::fac]466 466 y = y[::fac] 467 467 llbl = self._get_label(scan, r, self._stacking, self._lmap) … … 476 476 plotit = self._plotter.plot 477 477 if self._hist: plotit = self._plotter.hist 478 plotit(x,y ,m)478 plotit(x,y) 479 479 xlim= self._minmaxx or [min(x),max(x)] 480 480 allxlim += xlim 481 ylim= self._minmaxy or [m in(y),max(y)]481 ylim= self._minmaxy or [ma.MA.minimum(y),ma.MA.maximum(y)] 482 482 allylim += ylim 483 483 stackcount += 1
Note:
See TracChangeset
for help on using the changeset viewer.