Ignore:
Timestamp:
05/04/10 12:42:40 (14 years ago)
Author:
Malte Marquarding
Message:

Replace matplotlib.numerix with numpy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapplotter.py

    r1696 r1739  
    548548        if not self._data.get_unit().endswith("Hz"):
    549549            raise RuntimeError("Can only overlay linecatalogs when data is in frequency.")
    550         from matplotlib.numerix import ma
     550        from numpy import ma
    551551        for j in range(len(self._plotter.subplots)):
    552552            self._plotter.subplot(j)
     
    767767                    y = scan._getspectrum(r)
    768768                m = scan._getmask(r)
    769                 from matplotlib.numerix import logical_not, logical_and
     769                from numpy import logical_not, logical_and
    770770                if self._maskselection and len(self._usermask) == len(m):
    771771                    if d[self._stacking](r) in self._maskselection[self._stacking]:
    772772                        m = logical_and(m, self._usermask)
    773773                x = scan._getabcissa(r)
    774                 from matplotlib.numerix import ma, array
     774                from numpy import ma, array
    775775                y = ma.masked_array(y,mask=logical_not(array(m,copy=False)))
    776776                if self._minmaxx is not None:
     
    882882        from matplotlib.dates import HourLocator, MinuteLocator,SecondLocator, DayLocator
    883883        from matplotlib.ticker import MultipleLocator
    884         from matplotlib.numerix import array, pi
     884        from numpy import array, pi
    885885        dates = self._data.get_time(asdatetime=True)
    886886        t = PL.date2num(dates)
     
    940940        """
    941941        from matplotlib import pylab as PL
    942         from matplotlib.numerix import array
     942        from numpy import array
    943943        dir = array(self._data.get_directionval()).transpose()
    944944        ra = dir[0]*180./pi
Note: See TracChangeset for help on using the changeset viewer.