Changeset 652 for trunk/python/asapplotter.py
- Timestamp:
- 06/22/05 15:54:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r626 r652 121 121 self._plotter.set_panels() 122 122 rows = self._cursor["t"] 123 self._plotter.palette( 1)123 self._plotter.palette(0) 124 124 for rowsel in rows: 125 125 i = self._cursor["t"].index(rowsel) 126 126 if n > 1: 127 self._plotter.palette( 1)127 self._plotter.palette(0) 128 128 self._plotter.subplot(i) 129 129 colvals = eval(cdict2.get(colmode)) … … 214 214 215 215 for scan in scans: 216 self._plotter.palette( 1)216 self._plotter.palette(0) 217 217 if n > 1: 218 218 self._plotter.subplot(scans.index(scan)) 219 self._plotter.palette(1)220 219 colvals = eval(cdict2.get(colmode)) 221 220 rowsel = self._cursor["t"][0] … … 302 301 panels = self._cursor[self._panelling] 303 302 for i in panels: 304 self._plotter.palette( 1)303 self._plotter.palette(0) 305 304 polmode = "raw" 306 305 ii = self._cursor[self._panelling].index(i) … … 360 359 if self._title and len(self._title) > 0: 361 360 tlab = self._title[ii] 362 else: 363 tlab = self._ldict.get(self._panelling)+' '+str(i) 361 else: 362 if self._panelling == 'p': 363 tlab = self._get_pollabel(scan, polmode) 364 else: 365 tlab = self._ldict.get(self._panelling)+' '+str(i) 364 366 if self._lmap and len(self._lmap) > 0: 365 367 llab = self._lmap[jj] … … 512 514 return 513 515 514 def save(self, filename=None ):516 def save(self, filename=None, orientation='landscape'): 515 517 """ 516 518 Save the plot to a file. The know formats are 'png', 'ps', 'eps'. … … 521 523 called 'yyyymmdd_hhmmss.png' is created in the 522 524 current directory. 523 """ 524 self._plotter.save(filename) 525 orientation: optional parameter for postscript. 'landscape' 526 (default) and 'portrait' are valid. 527 """ 528 self._plotter.save(filename,orientation) 525 529 return 526 530 … … 614 618 polmode.append("circular") 615 619 else: 616 "Pol type '%s' not valid" %i620 print "Pol type '%s' not valid" %i 617 621 return 618 622 elif 0 > i >= n:
Note: See TracChangeset
for help on using the changeset viewer.