Table of Contents

Class: CurveVizBLT py4cs/CurveViz.py
Base Classes   
CurveViz
Methods   
__del__
__init__
erase
init
plotcurve
plotcurves
psdump
psplot
  __del__ 
__del__ ( self )

  __init__ 
__init__ (
        self,
        blt_widget=None,
        side='top',
        width=600,
        height=400,
        **kwargs,
        )

Create a visualizer for curves, using BLT. See module documentation for interface description. Two additional keyword arguments are provided:

blt_widget available Pmw.Blt.Graph widget (alternative to making a new one in parent_frame, defaults to None) side side=side is used when packing a new Pmw.Blt.Graph widget in parent_frame (defaults to top)

Additional functions: erase - erase all curves

Example: from py4cs.CurveViz import CurveVizBLT t = sequence(-4, 4, 0.1, Float) g = CurveVizBLT(coor=t, parent_frame=some_frame, ymin=-1.2, ymax=1.2, xlabel=t) # work with g as with any other class in this module # programmer can issue any Pmw.Blt.Graph command, e.g., g.g.xaxis_configure(logscale=1) # log scale on x axis

Exceptions   
ValueError, 'parent_frame argument is required'
  erase 
erase ( self )

  init 
init ( self )

  plotcurve 
plotcurve (
        self,
        y,
        legend='',
        ps=0,
        plotstyle=DEFAULTSTYLE,
        )

See CurveViz module for documentation.

  plotcurves 
plotcurves (
        self,
        curves,
        ps=0,
        plotstyles=DEFAULTSTYLE,
        )

See CurveViz module for documentation.

  psdump 
psdump ( self,  event )

  psplot 
psplot ( self,  ps )


Table of Contents

This document was automatically generated on Sun Mar 14 15:31:01 2004 by HappyDoc version 2.1