Table of Contents

Class: DrawFunction py4cs/DrawFunction.py
Methods   
__init__
__ymax
__ymin
erase
get
interpolate
mouse_down
mouse_drag
mouse_up
pack
  __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 )


Table of Contents

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