disipyl.quickplots (version 1.1)
index
/home/pmagwene/data/pmag/pyth/disipyl/quickplots.py

 Quick versions of disipyl plots
 
-----------------------------------------------------------------------------
(c) Copyright by Paul M. Magwene, 2002  (mailto:paul.magwene@yale.edu)
    Permission to use, copy, modify, and distribute this software and its
    documentation for any purpose and without fee or royalty is hereby granted,
    provided that the above copyright notice appear in all copies and that
    both that copyright notice and this permission notice appear in
    supporting documentation or portions thereof, including modifications,
    that you make.
 
    THE AUTHOR PAUL M. MAGWENE DISCLAIMS ALL WARRANTIES WITH REGARD TO
    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
    FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
    INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
    FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
    NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
    WITH THE USE OR PERFORMANCE OF THIS SOFTWARE !
-----------------------------------------------------------------------------

 
Modules
            
Numeric
Numeric
disipyl.contours
math
disipyl.plots
disipyl.pxdislin
disipyl.pxdislin3D
disipyl.utilities
 
Functions
            
contour(f, rangex, rangey, zinterval, draw=1)
Draws a contour plot of f(x,y) over the given ranges, contours drawn at zinterval.
 
Comments:
    * f is a function which takes two arguments and returns a single numeric value
    * rangex and rangey are (min, max) tuples
    * default stepsize = (max - min)/10
    * Use keyword setting draw=0 to just return the plot object without
        first drawing the plot.
histogram(data, nbins=8, draw=1, **keywords)
Given data sequence (list, array, etc), automatically generates a histogram.
 
Comments:
    * Use keyword setting draw=0 to just return the plot object without
        first drawing the plot.
plot(x, y, draw=1, **keywords)
Given two data sequences (of equal length), draw curve based on pts.
 
Comments:
    * Use keyword setting draw=0 to just return the plot object without
        first drawing the plot.
pseudocolor(M, draw=1)
Draws a psuedo-color representation of a matrix.
 
Comments:
    * Use keyword setting draw=0 to just return the plot object without
        first drawing the plot.
scatter(x, y, draw=1, **keywords)
Given two data sequences (of equal length), draw scatter plot based on pts.
 
Comments:
    * Use keyword setting draw=0 to just return the plot object without
        first drawing the plot.
surface(x, y, z, draw=1, **keywords)
Draws a surface based on x,y coordinates and z values (len(z) should be len(x)*len(y).
 
Comments:
    * The len of z should be len(x)*len(y)
    * Use keyword setting draw=0 to just return the plot object without
        first drawing the plot.
test()
 
Data
             __author__ = 'Paul M. Magwene '
__credits__ = ''
__file__ = '/home/pmagwene/data/pmag/pyth/disipyl/quickplots.py'
__name__ = 'disipyl.quickplots'
__version__ = '$Revision: 1.1.1.1 $'
colorlist = ['fore', 'red', 'green', 'blue', 'cyan', 'orange', 100, 125, 150, 175, 200, 225, 250]
colorloop = ['fore', 'red', 'green', 'blue', 'cyan', 'orange', 100, 125, 150, 175, 200, 225, 250]
hasnumeric = 1
symbollist = ['fill circle', 'fill square', 'fill triangle', 'fill diamond', 'circle', 'square', 'triangle', 'cross', 'diamond', 'star']
symbolloop = ['fill circle', 'fill square', 'fill triangle', ...'square', 'triangle', 'cross', 'diamond', 'star']
 
Author
             Paul M. Magwene <paul.magwene@yale.edu>
 
Credits