Methods
|
|
|
|
__init__
|
__init__ (
self,
xcoor,
parent,
ymin=0.0,
ymax=1.0,
width=500,
height=200,
curvename=' ',
ylabel='',
xlabel='',
curvecolor='green',
curvewidth=4,
yrange_widgets=True,
)
Interactive drawing of a function.
xcoor grid points (on the x axsis) for interpolation
parent parent widget
ymin, ymax initial extent of the y axis
width, height size of widget
curvename name of function to be drawn
xlabel, ylabel labels on the axis
curvecolor color of the drawn curve
curvewidth line thickness of the drawn curve
yrange_widgets True: add text entries for range of y axis
|
|
__ymax
|
__ymax ( self )
|
|
__ymin
|
__ymin ( self )
|
|
erase
|
erase ( self )
delete all curves and make new empty self.x and self.y
|
|
get
|
get ( self )
return points (x,y), interpolated to the grid, where
x and y are NumPy arrays of coordinates
|
|
interpolate
|
interpolate ( self )
|
|
mouse_down
|
mouse_down ( self, event )
|
|
mouse_drag
|
mouse_drag ( self, event )
|
|
mouse_up
|
mouse_up ( self, event )
|
|
pack
|
pack ( self, **kwargs )
|
|