Module pygplot :: Class Panel
[show private | hide private]
[frames | no frames]

Class Panel


Class used to create a multi-panel plot with a single bounding box. Unlike MPlot, these panels are made to look like one plot with contiguous sub-plots. For example, if the plot were split into 3 x 3 panels, the central panel would have no labels outside it's box, which would abutt the sides of the adjoining panels. Other than this property, this class works the same as MPlot.
Method Summary
  __init__(self, nx, ny, device, aspect)
Initialization routine for the MPlot class.
  add(self, plot)
Add a Plot instance to the MPlot.
  close(self)
Close the pgplot device corresponding to the MPlot.
  get_just(self, i)
Get the correct justification for panel i.
  interact(self, bindings, mode)
This is similar to Plot's interact, but is more of an overseer: it figures out which panel the event is supposed to happen in, then calls that Plot's binding do the the work.
  plot(self)
Plot the Mplot.
  replot(self)
  select(self, i)
Make the instance's device the current device and select the given panel.

Method Details

__init__(self, nx, ny, device='/XSERVE', aspect=None)
(Constructor)

Initialization routine for the MPlot class.
Parameters:
nx - number of columns
           (type=int)
ny - number of rows
           (type=int)
device - Pgplot device to use (default: 1st available device)
           (type=string)
aspect - The aspect ratio (height/width) (default: device dependent).
           (type=float)

add(self, plot)

Add a Plot instance to the MPlot. The instances are plotted in the order they are added, filling each row and then switching to the next.

close(self)

Close the pgplot device corresponding to the MPlot.

get_just(self, i)

Get the correct justification for panel i.

interact(self, bindings=None, mode=7)

This is similar to Plot's interact, but is more of an overseer: it figures out which panel the event is supposed to happen in, then calls that Plot's binding do the the work.

plot(self)

Plot the Mplot. Each sub-panel is plotted by calling that instance's plot() method after calling pgpage() to advance to the next panel.

select(self, i=0)

Make the instance's device the current device and select the given panel.
Parameters:
i - which panel to select (default: 0)
           (type=int)

Generated by Epydoc 2.1 on Tue Sep 25 12:14:22 2007 http://epydoc.sf.net