biggles

reference guide 1.3.0 : containers

( overview : containers : components : style : config : functions )

containers

CustomFramedPlot ()

This object represents a framed plot, where the axes surround the plotting region, instead of intersecting it. Here's an example. You build a plot by adding components, using:

p.add( component... )
p.add2( component... )

where p is a CustomFramedPlot object. Components are rendered in the order they're added.

There are four axis objects exposed by CustomFramedPlot: p.x, p.y, p.x2, and p.y2. The per-axis options below apply to each of these objects. So for example, to label the right side of the frame, you would say:

p.y2.label = "something"

Per-axis options:

FramedPlot ()

This object represents a framed plot, where the axes surround the plotting region, instead of intersecting it. Here's an example. You build a plot by adding components, using:

p.add( component... )

where p is a FramedPlot object. Components are rendered in the order they're added.

Options:

FramedArray ( nrows, ncols )

Use this container if you want to plot an array of similar plots. Here's an example. To add a component to a specific cell, use

a[i,j].add( component... )

where a is a FramedArray object, i is the row number, and j is the column number. You can also add a component to all the cells at once using:

a.add( component... )

Options: (in addition to those of FramedPlot)

Use the .uniform_limits option if you want to force every cell to have the same limits.

HammerAitoffPlot ()

This plot implements Hammer-Aitoff coordinates, which are an equal-area projection of the sphere commonly used in astrophysics. Here's an example. You build a plot by adding components, using:

p.add( component... )

where p is a HammerAitoffPlot object. Components are rendered in the order they're added.

Options:

Plot ()

Plot behaves the same as FramedPlot, except no axes, axis labels, or titles are drawn.

Options: (same as FramedPlot, minus the title/label options)

Table ( nrows, ncols )

This container allows you to arrange other containers in a grid. Here's an example. To add a container to a specific cell, use

t[i,j] = container

where t is the Table object, i is the row number, and j is the column number.

Options:

container methods

.aspect_ratio = None
.title = None
.show ()
Plot the object in an X window.
.psprint ( printcmd=None )
Print the plot as PostScript using printcmd. If None, use default value ("lpr").
.save_as_eps ( filename )
Save plot as an Encapsulated PostScript (EPS) file. If filename is "-" output is sent to stdout.
.save_as_img ( type, width, height, filename )
Save plot as an image. Valid types are "png", "svg", and "gif". Note that the GIF images produced do not use (patented) LZW compression. If filename is "-" output is sent to stdout.