disipyl.demos (version 1.2)
index
/home/pmagwene/data/pmag/pyth/disipyl/demos.py

Demos illustrating the disipyl library.
 
-----------------------------------------------------------------------------
(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
RandomArray
disipyl.contours
math
disipyl.plots
disipyl.pxdislin
disipyl.pxdislin3D
disipyl.pydislin
disipyl.utilities
 
Functions
            
AllBarsDemo(ret=None)
Combines bar demos into single canvas.
AllScattersDemo(ret=None)
Combines scatter demo's into a single larger canvas.
AllTrigDemo(ret=None)
Combines a bunch of plots onto a Canvas4UP object.
barDemo(ret=None)
Demonstrates Bars object.
colorDemo(ret=None, colortable='rainbow')
Generates a color bar showing values of color indices.
colorPlot3DDemo(ret=None)
Demonstrates 3-D color plot.
 
Comments:
contourDemo1(ret=None)
Demonstrates use of FunctionContours object. 
 
Comments:  FunctionContours make plotting contours of particular functions
    easy, by taking care of all the calculations for you.
contourDemo2(ret=None)
Demonstrates use of Contour objects, ShadedContours, and the Canvas2UP object.
 
Comments:   
* Use of individual Contour ojects rather than a FunctionContours 
   object allows for a greater amount of tweaking.  
* I use a Loop object (from disipyl.utilies) for cycling attributes.
* I generate two contour plots of the same function, one using standard
   Contours, and one using a ShadedContours object.
curveDemo(ret=None)
A fairly involved demo, building a plot from the basic components.
 
Comments: Normally I'd probably start with a plots.FunctionPlot object to
    draw one of the function curves, and then add the second curve.  However,
    this demo shows how you can build up the plot from simple objects.
* This demo also shows that you don't necessarily need a Canvas object to 
    draw a plot.  If needed a PlotObject will instantiate it's own Canvas.
* Legend object is used.  Note that by default, Legend objects will automatically
    take their properties from calls to dislin.curve (usually via Curve object).
    If you want to change this behavior setting the auto property of the legend
    object to zero, and define symbols, linestyles, etc. for the legend object.
* Note that the title uses TeX mode.
fsurf(x, y)
function used in functionSurfaceDemo
functionSurfaceDemo(ret=None)
Demonstrates SurfacePlot object (wrapper around FunctionSurface).
 
Comments:
functionSurfacePlusPlane(ret=None)
Demonstrates SurfacePlot plus Plane3D objects.
 
Comments:
    * I combine a 2D representation and a 3D representation of the same
        function into a single 3D plot.
lightingDemo(ret=None)
This is meant to demonstrate the using of LightingSystem objects.  NOT WORKING YET!
multiBarDemo(ret=None)
Demonstrates use of multiple Bars objects.
multiScatterDemo(ret=None)
Example of using symbol groups to construct a scatter plot.
 
Comments:
-- Also demonstrates use of Legend object.
parametricSurfaceDemo(ret=None)
Demonstrates ParametricSurface object.
 
Comments:  Plot is drawn with black background by setting the screenmode
 attribute of the canvas object to 'black' (as opposed to 'normal').
pfunc(x, y, axis)
function for parametricSurfaceDemo.
scatterDemo(ret=None)
Example of ScatterPlot usage.
showdemos()
calls each of the demos in turn.
surfaceDemo(ret=None)
Shows of the IrregularSurface and ShadedSurface Plots.
 
Data
             __author__ = 'Paul M. Magwene '
__credits__ = ''
__file__ = '/home/pmagwene/data/pmag/pyth/disipyl/demos.py'
__name__ = 'disipyl.demos'
__version__ = '$Revision: 1.1.1.1 $'
hasnumeric = 1
 
Author
             Paul M. Magwene <paul.magwene@yale.edu>
 
Credits