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.
Constructor: PolyPoints(points, **|attr|), where points is any sequence of (x, y) number pairs and attr stands for marker attributes specified by keyword arguments:
the line width for drawing the marker (default: 1)
a string whose value is one of the color names defined in Tk, defines the color of the line forming the marker (default: black)
a string whose value is one of the color names defined in Tk, defines the color of the interior of the marker (default: black)
one of circle (default), dot, square, triangle, triangle_down, cross, plus
Constructor: PlotGraphics(objects), where objects is a list whose elements can be instances of the classes PolyLine, PolyPoint, and PlotGraphics.
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:Draws the graphics object graphics, which can be a PolyLine, PolyMarker, or PlotGraphics object. The arguments xaxis and yaxis specify how axes are drawn: None means that no axis is drawn and the graphics objects are scaled to fill the canvas optimally. "automatic"means that the axis is drawn and a suitable value range is determined automatically. A sequence of two numbers means that the axis is drawn and the value range is the interval specified by the two numbers.
Clears the canvas.
Redraws the last canvas contents.