Module Scientific.TkWidgets.TkPlotCanvas

Class PolyLine: Multiple connected lines

Constructor: PolyLine(points, **|attr|), where points is any sequence of (x, y) number pairs and attr stands for line attributes specified by keyword arguments, which arewidth (an integer) and color (a string whose value is one of the color names defined in Tk). The default is a black line of width 1.

Class PolyMarker: Series of markers

Constructor: PolyPoints(points, **|attr|), where points is any sequence of (x, y) number pairs and attr stands for marker attributes specified by keyword arguments:

width

the line width for drawing the marker (default: 1)

color

a string whose value is one of the color names defined in Tk, defines the color of the line forming the marker (default: black)

fillcolor

a string whose value is one of the color names defined in Tk, defines the color of the interior of the marker (default: black)

marker

one of circle (default), dot, square, triangle, triangle_down, cross, plus

Class PlotGraphics: Compound graphics object

Constructor: PlotGraphics(objects), where objects is a list whose elements can be instances of the classes PolyLine, PolyPoint, and PlotGraphics.

Class PlotCanvas: Tk plot widget

Constructor: PlotCanvas(master, width, height, **|attributes|). The arguments have the same meaning as for a standard Tk canvas. The default background color is white and the default font is Helvetica at 10 points.

PlotCanvas objects support all operations of Tk widgets.

Methods: