__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'
|
|