- Timestamp:
- 05/04/10 12:42:40 (15 years ago)
- Location:
- trunk/python
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/__init__.py
r1725 r1739 76 76 77 77 """ 78 79 78 fname = os.path.join( os.getcwd(), '.asaprc') 80 79 if os.path.exists(fname): return fname … … 453 452 get_coordinate - get the spectral coordinate for the given row, 454 453 which can be used for coordinate conversions 454 get_weather - get the weather condition parameters 455 455 get_unit - get the current unit 456 456 set_unit - set the abcissa unit to be used from this -
trunk/python/asapfitter.py
r1689 r1739 513 513 xlab = 'Abcissa' 514 514 ylab = 'Ordinate' 515 from matplotlib.numeriximport ma,logical_not,logical_and,array515 from numpy import ma,logical_not,logical_and,array 516 516 m = self.mask 517 517 if self.data: -
trunk/python/asaplotbase.py
r1568 r1739 10 10 from matplotlib.figure import Figure, Text 11 11 from matplotlib.font_manager import FontProperties as FP 12 from matplotlib.numeriximport sqrt12 from numpy import sqrt 13 13 from matplotlib import rc, rcParams 14 14 from asap import rcParams as asaprcParams … … 145 145 fmt is the line style as in plot(). 146 146 """ 147 from matplotlib.numeriximport array148 from matplotlib.numerix.ma import MaskedArray147 from numpy import array 148 from numpy.ma import MaskedArray 149 149 150 150 if x is None: -
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.