Table of Contents

Class: plot_canvas ./ProbEditorContinuous.py

first dirty, but working sketch of a plot canvas should be used with the plot objects

Base Classes   
Tkinter.Canvas
Methods   
__init__
add_plot_object
calculate_tic_distance
canvasxy_to_xy
configure_event
configure_plot_item
configure_scale
create_plot_item
create_scale
del_tics
find_plot_object
get_coords
new_tics
remove_plot_object
replot
replot_object
xy_to_canvasxy
  __init__ 
__init__ (
        self,
        master,
        **cnf,
        )

  add_plot_object 
add_plot_object ( self,  plot_object )

adds a plot object, if it does not allready exist

  calculate_tic_distance 
calculate_tic_distance (
        self,
        scale,
        length,
        )

calculates distance between tics by:

  • scaling factor (pixel per unit)

  • length (pixel)

  canvasxy_to_xy 
canvasxy_to_xy ( self,  canvasxy )

converts canvas pixle coords to xy Pairs

  configure_event 
configure_event ( self,  event )

configuration of canvas, scales and plots

  configure_plot_item 
configure_plot_item (
        self,
        item,
        plot_object,
        )

  configure_scale 
configure_scale ( self )

when all coordinates are set, the graphic items were configured

  create_plot_item 
create_plot_item ( self,  plot_object )

  create_scale 
create_scale ( self )

creates and configures scale-arrows and provides tics

  del_tics 
del_tics ( self )

delete tics

  find_plot_object 
find_plot_object ( self,  object )

finds the position of the plot object in the list, returns None, if it doesn't exist

  get_coords 
get_coords ( self,  plot_object )

  new_tics 
new_tics ( self )

new tics

  remove_plot_object 
remove_plot_object ( self,  plot_object )

removes a plot_object, if it existst in the list and erases the line from canvas

  replot 
replot ( self )

redraws all plot-objects

  replot_object 
replot_object ( self,  object )

replot a single object

  xy_to_canvasxy 
xy_to_canvasxy ( self,  xy )

converts xy Pairs to pixle coordinates on the plot canvas


Table of Contents

This document was automatically generated on Fri Mar 15 11:15:02 2002 by HappyDoc version 2.0