Changeset 2704
- Timestamp:
- 12/20/12 14:38:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r2700 r2704 60 60 self._legendloc = None 61 61 ### scantable plot settings 62 self._plotmode = "spectra" 62 63 self._panelling = None 63 64 self._stacking = None … … 961 962 are consistent e.g. all 'channel' or all 'velocity' etc. 962 963 """ 964 self._plotmode = "spectra" 963 965 if not self._data and not scan: 964 966 msg = "Input is not a scantable" … … 1304 1306 plot azimuth and elevation versus time of a scantable 1305 1307 """ 1308 self._plotmode = "azel" 1306 1309 visible = rcParams['plotter.gui'] 1307 1310 from matplotlib import pylab as PL … … 1311 1314 from matplotlib.ticker import MultipleLocator 1312 1315 from numpy import array, pi 1313 if PL.gcf() == self._plotter.figure:1316 if self._plotter and (PL.gcf() == self._plotter.figure): 1314 1317 # the current figure is ASAP plotter. Use mpl plotter 1315 1318 figids = PL.get_fignums() 1316 if figids[-1] > 0: 1317 PL.figure(figids[-1]) 1318 else: 1319 PL.figure(1) 1319 PL.figure(max(figids[-1],1)) 1320 1320 1321 if not visible or not self._visible: 1321 1322 PL.ioff() … … 1423 1424 ''(no projection [deg])|'coord'(not implemented) 1424 1425 """ 1426 self._plotmode = "pointing" 1425 1427 from numpy import array, pi 1426 1428 from asap import scantable … … 1544 1546 from matplotlib import pylab as PL 1545 1547 from numpy import array, pi 1546 if PL.gcf() == self._plotter.figure:1548 if self._plotter and (PL.gcf() == self._plotter.figure): 1547 1549 # the current figure is ASAP plotter. Use mpl plotter 1548 1550 figids = PL.get_fignums() 1549 if figids[-1] > 0: 1550 PL.figure(figids[-1]) 1551 else: 1552 PL.figure(1) 1551 PL.figure(max(figids[-1],1)) 1552 1553 1553 if not visible or not self._visible: 1554 1554 PL.ioff() … … 1588 1588 @asaplog_post_dec 1589 1589 def plottp(self, scan=None): 1590 self._plotmode = "totalpower" 1590 1591 from asap import scantable 1591 1592 if not self._data and not scan: … … 1775 1776 spectra which belong to a grid. 1776 1777 """ 1778 self._plotmode = "grid" 1777 1779 from asap import scantable 1778 1780 from numpy import array, ma, cos
Note:
See TracChangeset
for help on using the changeset viewer.