<--previous | contents | next-->

Graphs

PyGDChart exposes a set of classes that allow the programmer to draw various graphs on classical Cartesian axes. All of these Graph types share an underlying set of options, and obey the same basic interface. Please see sections discussing particular graph types for more information.

Interface

In addition to the common interface Graph types expose the following methods:

setScatter(scatterpoints)

Here, scatterpoints is a list of Scatter objects. See the section on Scatter Graphs for an in-depth discussion of the use of this method.

annotate(point=0, note="", colour="white")

The GDChart library allows the user to add a single annotation to a given graph. The point argument indicates the X-axis offset of the annotation, note is the annotation text itself, and colour is the annotation colour.

clearAnnotation()

Clear the annotation, if any.


<--previous | contents | next--> (12/31/03)
PyGDChart User's Manual