In two dimensions, PyGist supplies functions to plot curves, meshes (with various combinations of contours, filled mesh cells, and vector fields on the mesh, with color-filled contours in the future), sets of filled polygons, cell arrays, sets of disjoint lines, text strings, and a title. These are all provided by the Python module gist.py
.
We will show a couple of simple examples below to give the reader a flavor of the interface.
In the first example we simply plot a straight line from (1, 0) to (2, 1). Note that only two coordinates are specified for y; x is not specified. In such a case, the values of x default to the integers from 1 to len (y).
As can be deduced from this example, most PyGist function calls can be augmented with a number of optional keyword arguments. These can (usually) be supplied in any order, and each is of the form keyword=value. Throughout this manual, a list of the available keywords for a function is given with the description of the function.
The next example computes and plots a set of nested cardioids in the primary and secondary colors.