@header@
matplotlib.mlab | index /usr/local/lib/python2.3/site-packages/matplotlib/mlab.py |
Numerical python functions written for compatability with matlab
commands with the same names.
Matlab compatible functions:
* cohere - Coherence (normalized cross spectral density)
* corrcoef - The matrix of correlation coefficients
* csd - Cross spectral density uing Welch's average periodogram
* detrend -- Remove the mean or best fit line from an array
* find - Return the indices where some condition is true
* linspace -- Linear spaced array from min to max
* hist -- Histogram
* polyfit - least squares best polynomial fit of x to y
* polyval - evaluate a vector for a vector of polynomial coeffs
* prctile - find the percentiles of a sequence
* prepca - Principal Component's Analysis
* psd - Power spectral density uing Welch's average periodogram
* rk4 - A 4th order runge kutta integrator for 1D or ND systems
* vander - the Vandermonde matrix
* trapz - trapeziodal integration
Functions that don't exist in matlab, but are useful anyway:
* cohere_pairs - Coherence over all pairs. This is not a matlab
function, but we compute coherence a lot in my lab, and we
compute it for alot of pairs. This function is optimized to do
this efficiently by caching the direct FFTs.
Credits:
Unless otherwise noted, these functions were written by
Author: John D. Hunter <jdhunter@ace.bsd.uchicago.edu>
Some others are from the Numeric documentation, or imported from
MLab or other Numeric packages
Functions | ||
|
Data | ||
Any = Any Bool = Bool Byte = Int8 CLIP = 0 Complex = Complex64 Complex32 = Complex32 Complex64 = Complex64 Error = <numarray.ufunc.NumError instance> False = False Float = Float64 Float32 = Float32 Float64 = Float64 Int = Int32 Int16 = Int16 Int32 = Int32 Int64 = Int64 Int8 = Int8 Long = Int32 MAX_ALIGN = 8 MAX_INT_SIZE = 8 MAX_LINE_WIDTH = None MaybeLong = Int32 NewAxis = None Object = Object PRECISION = None Py2NumType = {<type 'float'>: Float64, <type 'int'>: Int32, <type 'long'>: Int32, <type 'bool'>: Bool, <type 'complex'>: Complex64} PyINT_TYPES = {<type 'int'>: 1, <type 'long'>: 1, <type 'bool'>: 1} PyLevel2Type = {-1: <type 'bool'>, 0: <type 'int'>, 1: <type 'long'>, 2: <type 'float'>, 3: <type 'complex'>} PyNUMERIC_TYPES = {<type 'float'>: 2, <type 'int'>: 0, <type 'long'>: 1, <type 'bool'>: -1, <type 'complex'>: 3} PyREAL_TYPES = {<type 'float'>: 1, <type 'int'>: 1, <type 'long'>: 1, <type 'bool'>: 1} RAISE = 2 SUPPRESS_SMALL = None Short = Int16 True = True UInt16 = UInt16 UInt32 = UInt32 UInt64 = UInt64 UInt8 = UInt8 WRAP = 1 a = 'matplotlib.transforms' abs = <UFunc: 'abs'> absolute = <UFunc: 'abs'> add = <UFunc: 'add'> arccos = <UFunc: 'arccos'> arccosh = <UFunc: 'arccosh'> arcsin = <UFunc: 'arcsin'> arcsinh = <UFunc: 'arcsinh'> arctan = <UFunc: 'arctan'> arctan2 = <UFunc: 'arctan2'> arctanh = <UFunc: 'arctanh'> bitwise_and = <UFunc: 'bitwise_and'> bitwise_not = <UFunc: 'bitwise_not'> bitwise_or = <UFunc: 'bitwise_or'> bitwise_xor = <UFunc: 'bitwise_xor'> ceil = <UFunc: 'ceil'> cos = <UFunc: 'cos'> cosh = <UFunc: 'cosh'> divide = <UFunc: 'divide'> division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192) e = 2.7182818284590451 equal = <UFunc: 'equal'> exp = <UFunc: 'exp'> fabs = <UFunc: 'fabs'> floor = <UFunc: 'floor'> fmod = <UFunc: 'remainder'> genericCoercions = {('Bool', 'Bool'): 'Bool', ('Bool', 'Complex32'): 'Complex32', ('Bool', 'Complex64'): 'Complex64', ('Bool', 'Float32'): 'Float32', ('Bool', 'Float64'): 'Float64', ('Bool', 'Int16'): 'Int16', ('Bool', 'Int32'): 'Int32', ('Bool', 'Int64'): 'Int64', ('Bool', 'Int8'): 'Int8', ('Bool', 'Object'): 'Object', ...} genericPromotionExclusions = {'Bool': (), 'Complex32': (), 'Complex64': (), 'Float32': (), 'Float64': (11,), 'Int16': (), 'Int32': (), 'Int64': (9,), 'Int8': (), 'UInt16': (), ...} genericTypeRank = ['Bool', 'Int8', 'UInt8', 'Int16', 'UInt16', 'Int32', 'UInt32', 'Int64', 'UInt64', 'Float32', 'Float64', 'Complex32', 'Complex64', 'Object'] greater = <UFunc: 'greater'> greater_equal = <UFunc: 'greater_equal'> hypot = <UFunc: 'hypot'> ieeemask = <UFunc: 'ieeemask'> isBigEndian = False less = <UFunc: 'less'> less_equal = <UFunc: 'less_equal'> log = <UFunc: 'log'> log10 = <UFunc: 'log10'> logical_and = <UFunc: 'logical_and'> logical_not = <UFunc: 'logical_not'> logical_or = <UFunc: 'logical_or'> logical_xor = <UFunc: 'logical_xor'> lshift = <UFunc: 'lshift'> maximum = <UFunc: 'maximum'> minimum = <UFunc: 'minimum'> minus = <UFunc: 'minus'> multiply = <UFunc: 'multiply'> negative = <UFunc: 'minus'> not_equal = <UFunc: 'not_equal'> numarray_nonzero = <numarray.ufunc._NonzeroUFunc instance> pi = 3.1415926535897931 power = <UFunc: 'power'> pythonTypeMap = {<type 'float'>: ('Float64', 'float'), <type 'int'>: ('Int32', 'int'), <type 'long'>: ('Int32', 'int'), <type 'complex'>: ('Complex64', 'complex')} pythonTypeRank = [<type 'int'>, <type 'long'>, <type 'float'>, <type 'complex'>] rcParams = {'axes.edgecolor': 'k', 'axes.facecolor': 'w', 'axes.grid': False, 'axes.labelcolor': 'k', 'axes.labelsize': 12.0, 'axes.linewidth': 0.5, 'axes.titlesize': 14.0, 'backend': 'GTKAgg', 'datapath': '/usr/local/share/matplotlib', 'figure.dpi': 80.0, ...} readme = '\nMLab2.py, release 1\n\nCreated on February 2003 b...\nLook at: http://pdilib.sf.net for new releases.\n' remainder = <UFunc: 'remainder'> rshift = <UFunc: 'rshift'> scalarTypeMap = {<type 'float'>: 'Float64', <type 'int'>: 'Int32', <type 'long'>: 'Int32', <type 'complex'>: 'Complex64'} sin = <UFunc: 'sin'> sinh = <UFunc: 'sinh'> sqrt = <UFunc: 'sqrt'> subtract = <UFunc: 'subtract'> tan = <UFunc: 'tan'> tanh = <UFunc: 'tanh'> typeDict = {'1': Int8, 'Any': Any, 'Bool': Bool, 'Byte': Int8, 'Complex': Complex64, 'Complex32': Complex32, 'Complex64': Complex64, 'D': Complex64, 'F': Complex32, 'Float': Float64, ...} typecode = {Bool: '1', Int8: '1', UInt8: 'b', Int16: 's', UInt16: 'w', Int32: 'l', Int64: 'N', Float32: 'f', Float64: 'd', Complex32: 'F', ...} typecodes = {'Character': 'c', 'Complex': 'FD', 'Float': 'fd', 'Integer': '1silN', 'UnsignedInteger': 'bwu'} which = ('numarray', 'rc') |