Node:Creating canvas, Next:Drawing on canvas, Previous:canvas, Up:canvas
A new canvas is created by calling canvas.init
. It is closed by
calling the close()
method of the canvas object.
canvas.init FILE=None FORMAT="ps" | Function |
This procedure creates a new canvas. Both parameters, FNAME and FORMAT, are optional. Parameter FILE specifies the output file, and FORMAT specifies the file's format. It's one of "ps", "pdf", "svg", "x11", and "png". When FILE is omitted, the output is sent to standard output. When FORMAT is omitted, it is guessed from the FILE's suffix; failing that, "ps" is selected. |
canvas.T:close | Method |
This procedure closes a canvas. Calling this procedure is optional; Pychart calls this procedure for every open canvas on normal exit. |