disipyl.contours (version 1.3)
index
/home/pmagwene/data/pmag/pyth/disipyl/contours.py

A module for creating contour plots and 3-D color 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
disipyl.pydislin
disipyl.plots
disipyl.pxdislin
types
disipyl.utilities
 
Classes
            
disipyl.pxdislin.AxisSystem2D(disipyl.pxdislin.AxisSystem)
AxisSystemColor
disipyl.pxdislin.DrawObject(disipyl.pxdislin.Object)
ColorMatrix
ContourObject
Contour
ContourMatrix
ShadedContours
disipyl.pxdislin.Object(__builtin__.object)
FunctionContours
disipyl.plots.Plot2D(disipyl.pxdislin.PlotObject)
ColorPlot
 
class AxisSystemColor(disipyl.pxdislin.AxisSystem2D)
      Axis system object for 3D-color plots.
 
Arguments:
    * xaxis, yaxis, zaxis: Axis objects.
 
  
Method resolution order:
AxisSystemColor
disipyl.pxdislin.AxisSystem2D
disipyl.pxdislin.AxisSystem
disipyl.pxdislin.Object
__builtin__.object

Methods defined here:
__init__(self, xaxis=None, yaxis=None, zaxis=None, **keywords)
addZ(self, zaxis)
configure(self)
displayit(self)
draw(self)
postdisplay(self)
set_defaults(self)

Data and non-method functions defined here:
__doc__ = 'Axis system object for 3D-color plots.\n \n ... * xaxis, yaxis, zaxis: Axis objects.\n '
__module__ = 'disipyl.contours'

Methods inherited from disipyl.pxdislin.AxisSystem2D:
addX(self, xaxis)
addY(self, yaxis)
limits(self, xmin, xmax, ymin, ymax)
A convenience function for quickly setting limits of x and y axes.
postaxis(self)
squareup(self)
Causes x,y scaling to be equal.
ticks(self, xstart, xstep, ystart, ystep)
A convenience function for quickly setting tickstart/step of x and y axes.

Methods inherited from disipyl.pxdislin.AxisSystem:
cleanup(self)

Methods inherited from disipyl.pxdislin.Object:
__call__(self, **kw)
Set options or data for object.
deldata(self, dat)
deloption(self, opt)
info(self, option)
option_string(self)
Returns string containing all the options and their values.
print_options(self)
set_info(self, infomodule)
set_keywords(self, kw)
setdata(self, **kw)
setoptions(self, **kw)

Data and non-method functions inherited from disipyl.pxdislin.Object:
__dict__ = <dict-proxy object>
__weakref__ = <member '__weakref__' of 'Object' objects>

Methods inherited from __builtin__.object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__reduce__(...)
helper for pickle
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__str__(...)
x.__str__() <==> str(x)

Data and non-method functions inherited from __builtin__.object:
__class__ = <type 'type'>
the object's class
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
class ColorMatrix(disipyl.pxdislin.DrawObject)
      Object representing 3D color matrix.
 
  
Method resolution order:
ColorMatrix
disipyl.pxdislin.DrawObject
disipyl.pxdislin.Object
__builtin__.object

Methods defined here:
__init__(self, matrix=None, nrows=None, ncols=None, **keywords)
configure(self)
set_defaults(self)

Data and non-method functions defined here:
__doc__ = 'Object representing 3D color matrix.'
__module__ = 'disipyl.contours'

Methods inherited from disipyl.pxdislin.DrawObject:
cleanup(self)
draw(self)

Methods inherited from disipyl.pxdislin.Object:
__call__(self, **kw)
Set options or data for object.
deldata(self, dat)
deloption(self, opt)
info(self, option)
option_string(self)
Returns string containing all the options and their values.
print_options(self)
set_info(self, infomodule)
set_keywords(self, kw)
setdata(self, **kw)
setoptions(self, **kw)

Data and non-method functions inherited from disipyl.pxdislin.Object:
__dict__ = <dict-proxy object>
__weakref__ = <member '__weakref__' of 'Object' objects>

Methods inherited from __builtin__.object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__reduce__(...)
helper for pickle
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__str__(...)
x.__str__() <==> str(x)

Data and non-method functions inherited from __builtin__.object:
__class__ = <type 'type'>
the object's class
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
class ColorPlot(disipyl.plots.Plot2D)
      Base class for constructing 3D color plots.
 
  
Method resolution order:
ColorPlot
disipyl.plots.Plot2D
disipyl.pxdislin.PlotObject
disipyl.pxdislin.Object
__builtin__.object

Methods defined here:
set_axes(self)

Data and non-method functions defined here:
__doc__ = 'Base class for constructing 3D color plots.'
__module__ = 'disipyl.contours'

Methods inherited from disipyl.plots.Plot2D:
__init__(self, **keywords)
refresh = setup_plot(self)
setDataOptions(self, n=None, **keywords)
set_dataobjects(self)
set_defaults(self)
setup_plot(self)

Methods inherited from disipyl.pxdislin.PlotObject:
add(self, *obj)
cleanup(self)
configure(self)
draw(self, canvas=None)
drawaxes(self)
drawdataobjects(self)
drawdispostaxis(self)
Execute any extra functions which should be done at DISLIN levels 2 or 3
drawdispreaxis(self)
Execute any extra functions which should be done at DISLIN level 1
drawtitle(self)
explore(self)
finish_axes(self)
save(self, filename, format='postscript')

Methods inherited from disipyl.pxdislin.Object:
__call__(self, **kw)
Set options or data for object.
deldata(self, dat)
deloption(self, opt)
info(self, option)
option_string(self)
Returns string containing all the options and their values.
print_options(self)
set_info(self, infomodule)
set_keywords(self, kw)
setdata(self, **kw)
setoptions(self, **kw)

Data and non-method functions inherited from disipyl.pxdislin.Object:
__dict__ = <dict-proxy object>
__weakref__ = <member '__weakref__' of 'Object' objects>

Methods inherited from __builtin__.object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__reduce__(...)
helper for pickle
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__str__(...)
x.__str__() <==> str(x)

Data and non-method functions inherited from __builtin__.object:
__class__ = <type 'type'>
the object's class
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
class Contour(ContourObject)
      Object representing a single contour.
 
xlist, ylist -- lists of x,y coordinates
zlist -- list or matrix with z-values corresponding to x,y coordinates
 
  
Method resolution order:
Contour
ContourObject
disipyl.pxdislin.DrawObject
disipyl.pxdislin.Object
__builtin__.object

Methods defined here:
__init__(self, xlist=[], ylist=[], zlist=[], level=None, **keywords)
configure(self)

Data and non-method functions defined here:
__doc__ = 'Object representing a single contour.\n \n ... z-values corresponding to x,y coordinates\n '
__module__ = 'disipyl.contours'

Methods inherited from ContourObject:
cleanup(self)
set_defaults(self)

Methods inherited from disipyl.pxdislin.DrawObject:
draw(self)

Methods inherited from disipyl.pxdislin.Object:
__call__(self, **kw)
Set options or data for object.
deldata(self, dat)
deloption(self, opt)
info(self, option)
option_string(self)
Returns string containing all the options and their values.
print_options(self)
set_info(self, infomodule)
set_keywords(self, kw)
setdata(self, **kw)
setoptions(self, **kw)

Data and non-method functions inherited from disipyl.pxdislin.Object:
__dict__ = <dict-proxy object>
__weakref__ = <member '__weakref__' of 'Object' objects>

Methods inherited from __builtin__.object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__reduce__(...)
helper for pickle
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__str__(...)
x.__str__() <==> str(x)

Data and non-method functions inherited from __builtin__.object:
__class__ = <type 'type'>
the object's class
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
class ContourMatrix(ContourObject)
      Object representing a single contour representation of a matrix.
 
* Drawn using current X,Y-axis values.
 
Arguments:
    * zmatrix: 2-D Numeric array.
    * level: level at which to draw contour
 
  
Method resolution order:
ContourMatrix
ContourObject
disipyl.pxdislin.DrawObject
disipyl.pxdislin.Object
__builtin__.object

Methods defined here:
__init__(self, zmatrix=None, level=None, **keywords)
configure(self)

Data and non-method functions defined here:
__doc__ = 'Object representing a single contour representa... * level: level at which to draw contour\n '
__module__ = 'disipyl.contours'

Methods inherited from ContourObject:
cleanup(self)
set_defaults(self)

Methods inherited from disipyl.pxdislin.DrawObject:
draw(self)

Methods inherited from disipyl.pxdislin.Object:
__call__(self, **kw)
Set options or data for object.
deldata(self, dat)
deloption(self, opt)
info(self, option)
option_string(self)
Returns string containing all the options and their values.
print_options(self)
set_info(self, infomodule)
set_keywords(self, kw)
setdata(self, **kw)
setoptions(self, **kw)

Data and non-method functions inherited from disipyl.pxdislin.Object:
__dict__ = <dict-proxy object>
__weakref__ = <member '__weakref__' of 'Object' objects>

Methods inherited from __builtin__.object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__reduce__(...)
helper for pickle
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__str__(...)
x.__str__() <==> str(x)

Data and non-method functions inherited from __builtin__.object:
__class__ = <type 'type'>
the object's class
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
class ContourObject(disipyl.pxdislin.DrawObject)
      Base class for contour objects.
 
  
Method resolution order:
ContourObject
disipyl.pxdislin.DrawObject
disipyl.pxdislin.Object
__builtin__.object

Methods defined here:
cleanup(self)
configure(self)
set_defaults(self)

Data and non-method functions defined here:
__doc__ = 'Base class for contour objects.'
__module__ = 'disipyl.contours'

Methods inherited from disipyl.pxdislin.DrawObject:
__init__(self, disfunc=None, **keywords)
draw(self)

Methods inherited from disipyl.pxdislin.Object:
__call__(self, **kw)
Set options or data for object.
deldata(self, dat)
deloption(self, opt)
info(self, option)
option_string(self)
Returns string containing all the options and their values.
print_options(self)
set_info(self, infomodule)
set_keywords(self, kw)
setdata(self, **kw)
setoptions(self, **kw)

Data and non-method functions inherited from disipyl.pxdislin.Object:
__dict__ = <dict-proxy object>
__weakref__ = <member '__weakref__' of 'Object' objects>

Methods inherited from __builtin__.object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__reduce__(...)
helper for pickle
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__str__(...)
x.__str__() <==> str(x)

Data and non-method functions inherited from __builtin__.object:
__class__ = <type 'type'>
the object's class
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
class FunctionContours(disipyl.pxdislin.Object)
      Object representing contours for a given function, f(x,y).
 
Arguments:
    * func: function which accepted two arguments and returns single value
    * xstart, xstop, xstep: starting and ending values, and step size over 
        which to calculate contours.
    * ystart, ystop, ystep: see above.
    * zstep: contour interval.
 
  
Method resolution order:
FunctionContours
disipyl.pxdislin.Object
__builtin__.object

Methods defined here:
__init__(self, func=None, xstart=None, xstop=None, xstep=None, ystart=None, ystop=None, ystep=None, zstep=None, **keywords)
draw(self)
set_defaults(self)
setup_contours(self)
setup_data(self)

Data and non-method functions defined here:
__doc__ = 'Object representing contours for a given functi...above.\n * zstep: contour interval.\n '
__module__ = 'disipyl.contours'

Methods inherited from disipyl.pxdislin.Object:
__call__(self, **kw)
Set options or data for object.
configure(self)
deldata(self, dat)
deloption(self, opt)
info(self, option)
option_string(self)
Returns string containing all the options and their values.
print_options(self)
set_info(self, infomodule)
set_keywords(self, kw)
setdata(self, **kw)
setoptions(self, **kw)

Data and non-method functions inherited from disipyl.pxdislin.Object:
__dict__ = <dict-proxy object>
__weakref__ = <member '__weakref__' of 'Object' objects>

Methods inherited from __builtin__.object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__reduce__(...)
helper for pickle
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__str__(...)
x.__str__() <==> str(x)

Data and non-method functions inherited from __builtin__.object:
__class__ = <type 'type'>
the object's class
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
class ShadedContours(ContourObject)
      Object representing shaded contours.
 
Arguments:
    * xlist, ylist: sequences of x and y values over which function is
        calculated
    * zmatrix:
 
  
Method resolution order:
ShadedContours
ContourObject
disipyl.pxdislin.DrawObject
disipyl.pxdislin.Object
__builtin__.object

Methods defined here:
__init__(self, xlist=[], ylist=[], zmatrix=[], levels=None, **keywords)
configure(self)
set_defaults(self)

Data and non-method functions defined here:
__doc__ = 'Object representing shaded contours.\n \n ... calculated\n * zmatrix: \n '
__module__ = 'disipyl.contours'

Methods inherited from ContourObject:
cleanup(self)

Methods inherited from disipyl.pxdislin.DrawObject:
draw(self)

Methods inherited from disipyl.pxdislin.Object:
__call__(self, **kw)
Set options or data for object.
deldata(self, dat)
deloption(self, opt)
info(self, option)
option_string(self)
Returns string containing all the options and their values.
print_options(self)
set_info(self, infomodule)
set_keywords(self, kw)
setdata(self, **kw)
setoptions(self, **kw)

Data and non-method functions inherited from disipyl.pxdislin.Object:
__dict__ = <dict-proxy object>
__weakref__ = <member '__weakref__' of 'Object' objects>

Methods inherited from __builtin__.object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__reduce__(...)
helper for pickle
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__str__(...)
x.__str__() <==> str(x)

Data and non-method functions inherited from __builtin__.object:
__class__ = <type 'type'>
the object's class
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
Data
             __author__ = 'Paul M. Magwene '
__credits__ = ''
__file__ = '/home/pmagwene/data/pmag/pyth/disipyl/contours.py'
__name__ = 'disipyl.contours'
__version__ = '$Revision: 1.1.1.1 $'
clridxloop = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1...246, 247, 248, 249, 250, 251, 252, 253, 254, 255]
 
Author
             Paul M. Magwene <paul.magwene@yale.edu>
 
Credits