first dirty, but working sketch of a plot canvas
should be used with the plot objects
Methods
|
|
|
|
__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:
|
|
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
|