Changeset 1695 for trunk/python
- Timestamp:
- 02/11/10 09:56:55 (15 years ago)
- Location:
- trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r1597 r1695 1 from asap import rcParams, print_log, selector, scantable 1 from asap import rcParams, print_log, print_log_dec 2 from asap import selector, scantable 2 3 import matplotlib.axes 3 4 from matplotlib.font_manager import FontProperties … … 58 59 return asaplot(**kwargs) 59 60 60 61 @print_log_dec 61 62 def plot(self, scan=None): 62 63 """ … … 102 103 self._plotter.tidy() 103 104 self._plotter.show(hardrefresh=False) 104 print_log()105 105 return 106 106 … … 130 130 self._plotter.axes.set_xlim(xmin-marg, xmax+marg) 131 131 self.refresh() 132 132 133 133 def cleanup(lines=False, texts=False, refresh=False): 134 134 if lines: … … 141 141 for w in xrange(nwin): 142 142 wpos = [] 143 self.text(0.05,1.0, "Add start boundary", 143 self.text(0.05,1.0, "Add start boundary", 144 144 coords="relative", fontsize=10) 145 145 point = self._plotter.get_point() … … 148 148 continue 149 149 wpos.append(point[0]) 150 self.axvline(wpos[0], color=color) 150 self.axvline(wpos[0], color=color) 151 151 self.text(0.05,1.0, "Add end boundary", coords="relative", fontsize=10) 152 152 point = self._plotter.get_point() … … 968 968 PL.ion() 969 969 PL.draw() 970 -
trunk/python/asapreader.py
r1059 r1695 1 1 from asap._asap import stfiller 2 from asap import print_log 2 from asap import print_log_dec 3 3 4 4 class reader(stfiller): … … 25 25 rpfits ONLY. 26 26 """ 27 27 @print_log_dec 28 28 def __init__(self, filename, unit=None, theif=None, thebeam=None): 29 29 self.unit = unit … … 46 46 filename = expandvars(filename) 47 47 stfiller.__init__(self, filename, theif, thebeam) 48 print_log()49 48 49 @print_log_dec 50 50 def read(self): 51 51 """ … … 59 59 if self.unit is not None: 60 60 tbl.set_fluxunit(self.unit) 61 print_log()62 61 return scantable(tbl) 63 62
Note:
See TracChangeset
for help on using the changeset viewer.