A special canvas called
works as a recorder: when you execute graphics commands, it saves
them for replay later. They are saved as text holding executable
Python code. This makes it possible for a specialized graphics
package to save a chart in a file, and for any other canvas to replay
that file in the absence of the original package.
Having discussed the base API, we now tackle two key output formats: PostScript and PDF.