Changeset 1739 for trunk/python/asapplotter.py
- Timestamp:
- 05/04/10 12:42:40 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r1696 r1739 548 548 if not self._data.get_unit().endswith("Hz"): 549 549 raise RuntimeError("Can only overlay linecatalogs when data is in frequency.") 550 from matplotlib.numeriximport ma550 from numpy import ma 551 551 for j in range(len(self._plotter.subplots)): 552 552 self._plotter.subplot(j) … … 767 767 y = scan._getspectrum(r) 768 768 m = scan._getmask(r) 769 from matplotlib.numeriximport logical_not, logical_and769 from numpy import logical_not, logical_and 770 770 if self._maskselection and len(self._usermask) == len(m): 771 771 if d[self._stacking](r) in self._maskselection[self._stacking]: 772 772 m = logical_and(m, self._usermask) 773 773 x = scan._getabcissa(r) 774 from matplotlib.numeriximport ma, array774 from numpy import ma, array 775 775 y = ma.masked_array(y,mask=logical_not(array(m,copy=False))) 776 776 if self._minmaxx is not None: … … 882 882 from matplotlib.dates import HourLocator, MinuteLocator,SecondLocator, DayLocator 883 883 from matplotlib.ticker import MultipleLocator 884 from matplotlib.numeriximport array, pi884 from numpy import array, pi 885 885 dates = self._data.get_time(asdatetime=True) 886 886 t = PL.date2num(dates) … … 940 940 """ 941 941 from matplotlib import pylab as PL 942 from matplotlib.numeriximport array942 from numpy import array 943 943 dir = array(self._data.get_directionval()).transpose() 944 944 ra = dir[0]*180./pi
Note: See TracChangeset
for help on using the changeset viewer.