Changeset 1923
- Timestamp:
- 09/13/10 12:47:19 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r1913 r1923 1069 1069 1070 1070 def plotazel(self, scan=None, outfile=None): 1071 #def plotazel(self):1072 1071 """ 1073 1072 plot azimuth and elevation versus time of a scantable 1074 1073 """ 1074 visible = rcParams['plotter.gui'] 1075 1075 from matplotlib import pylab as PL 1076 1076 from matplotlib.dates import DateFormatter, timezone … … 1078 1078 from matplotlib.ticker import MultipleLocator 1079 1079 from numpy import array, pi 1080 if not visible or not self._visible: 1081 PL.ioff() 1082 from matplotlib.backends.backend_agg import FigureCanvasAgg 1083 PL.gcf().canvas.switch_backends(FigureCanvasAgg) 1080 1084 self._data = scan 1081 1085 self._outfile = outfile … … 1087 1091 PL.clf() 1088 1092 # Adjust subplot layouts 1089 if len(self._panellayout) !=6: self.set_panellayout(refresh=False) 1093 if len(self._panellayout) != 6: 1094 self.set_panellayout(refresh=False) 1090 1095 lef, bot, rig, top, wsp, hsp = self._panellayout 1091 1096 PL.gcf().subplots_adjust(left=lef,bottom=bot,right=rig,top=top, … … 1167 1172 1168 1173 def plotpointing(self, scan=None, outfile=None): 1169 #def plotpointing(self):1170 1174 """ 1171 1175 plot telescope pointings 1172 1176 """ 1177 visible = rcParams['plotter.gui'] 1173 1178 from matplotlib import pylab as PL 1174 1179 from numpy import array, pi 1180 if not visible or not self._visible: 1181 PL.ioff() 1182 from matplotlib.backends.backend_agg import FigureCanvasAgg 1183 PL.gcf().canvas.switch_backends(FigureCanvasAgg) 1175 1184 self._data = scan 1176 1185 self._outfile = outfile … … 1182 1191 PL.clf() 1183 1192 # Adjust subplot layouts 1184 if len(self._panellayout) !=6: self.set_panellayout(refresh=False) 1193 if len(self._panellayout) != 6: 1194 self.set_panellayout(refresh=False) 1185 1195 lef, bot, rig, top, wsp, hsp = self._panellayout 1186 1196 PL.gcf().subplots_adjust(left=lef,bottom=bot,right=rig,top=top,
Note:
See TracChangeset
for help on using the changeset viewer.