Changeset 1739 for trunk/python


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

Replace matplotlib.numerix with numpy

Location:
trunk/python
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/__init__.py

    r1725 r1739  
    7676
    7777    """
    78 
    7978    fname = os.path.join( os.getcwd(), '.asaprc')
    8079    if os.path.exists(fname): return fname
     
    453452            get_coordinate  - get the spectral coordinate for the given row,
    454453                              which can be used for coordinate conversions
     454            get_weather     - get the weather condition parameters
    455455            get_unit        - get the current unit
    456456            set_unit        - set the abcissa unit to be used from this
  • trunk/python/asapfitter.py

    r1689 r1739  
    513513        xlab = 'Abcissa'
    514514        ylab = 'Ordinate'
    515         from matplotlib.numerix import ma,logical_not,logical_and,array
     515        from numpy import ma,logical_not,logical_and,array
    516516        m = self.mask
    517517        if self.data:
  • trunk/python/asaplotbase.py

    r1568 r1739  
    1010from matplotlib.figure import Figure, Text
    1111from matplotlib.font_manager import FontProperties as FP
    12 from matplotlib.numerix import sqrt
     12from numpy import sqrt
    1313from matplotlib import rc, rcParams
    1414from asap import rcParams as asaprcParams
     
    145145        fmt is the line style as in plot().
    146146        """
    147         from matplotlib.numerix import array
    148         from matplotlib.numerix.ma import MaskedArray
     147        from numpy import array
     148        from numpy.ma import MaskedArray
    149149
    150150        if x is None:
  • 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.