Changeset 1556 for trunk/python
- Timestamp:
- 03/30/09 14:40:55 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r1555 r1556 1 1 from asap import rcParams, print_log, selector, scantable 2 2 import matplotlib.axes 3 from matplotlib.font_manager import FontProperties 4 from matplotlib.text import Text 5 3 6 import re 4 7 … … 38 41 self._selection = selector() 39 42 self._hist = rcParams['plotter.histogram'] 43 self._fp = FontProperties() 40 44 41 45 def _translate(self, instr): … … 489 493 if v: 490 494 fdict[k] = v 491 rcp('font',**fdict)495 self._fp = FontProperties(**fdict) 492 496 if self._data: 493 self.plot( self._data)497 self.plot() 494 498 495 499 def plot_lines(self, linecat=None, doppler=0.0, deltachan=10, rotate=90.0, … … 787 791 #reset the selector to the scantable's original 788 792 scan.set_selection(savesel) 793 if self._fp is not None: 794 for o in self._plotter.figure.findobj(Text): 795 o.set_fontproperties(self._fp) 796 789 797 790 798 def set_selection(self, selection=None, refresh=True): … … 823 831 return userlabel or d[mode] 824 832 825 def plotazel(self , scan=None):833 def plotazel(self): 826 834 """ 827 835 plot azimuth and elevation versus time of a scantable … … 831 839 from matplotlib.ticker import MultipleLocator 832 840 from matplotlib.numerix import array, pi 833 self._data = scan 834 dates = self._data.get_time() 841 dates = self._data.get_time(asdatetime=True) 835 842 t = PL.date2num(dates) 836 843 tz = timezone('UTC') … … 893 900 PL.draw() 894 901 895 def plotpointing(self , scan=None):902 def plotpointing(self): 896 903 """ 897 904 plot telescope pointings … … 901 908 from matplotlib.ticker import MultipleLocator 902 909 from matplotlib.numerix import array, pi, zeros 903 self._data = scan904 910 dir = array(self._data.get_directionval()).transpose() 905 911 ra = dir[0]*180./pi
Note:
See TracChangeset
for help on using the changeset viewer.