Home | Trees | Index | Help |
---|
Module pygplot |
|
Version: 0.92
Author: Chris Burns
Requires:
Pgplot (http://www.astro.caltech.edu/~tjp/pgplot/)
You can get the source for pygplot here: http://astro.swarthmore.edu/~burns/pygplot_downloads.
There is the beginnings of a manual here: http://astro.swarthmore.edu/~burns/pygplot.pdf.
This python module provides an object-oriented interface to the Pgplot library of routines. Most (though not all) of the functionality of Pgplot is included:Classes | |
---|---|
MPlot |
Class used to create a multi-panel plot with separate bounding boxes. |
Panel |
Class used to create a multi-panel plot with a single bounding box. |
Plot |
Class to make a single 2-D plot. |
Function Summary | |
---|---|
Select an x and y range simultaneously. | |
close()
| |
Read in the specified file and try to extract columns. | |
Convenience function for computing n numbers linearly interpolated between low and high. | |
Print out the list of available devices. | |
Print the currently installed palettes to the terminal. | |
Load a previously saved plot instance from file. | |
A quick hack to get around the fact that numarray doesn't have a function max, only a member function. | |
ditto | |
Pan so that (x,y) is new center. | |
Compute the cubic spline for a set of data | |
Convenience function to generate out a plot instance using columnar data from filename, using columns specified in using (a list of 2-tuples, one for each data line). | |
printcoords(x,
y,
key,
inst)
| |
redraw(x,
y,
key,
inst)
| |
replot()
| |
Save a plot instance in file. | |
set(option,
value)
| |
Select an xrange. | |
Select a yrange. | |
Zoom in or out by 50%. |
Variable Summary | |
---|---|
dict |
descriptions = {'/NULL': ['(Null device, no output)', 0]...
|
list |
devices = ['/GIF', '/VGIF', '/NULL', '/PPM', '/VPPM', '/...
|
SRE_Pattern |
hex_pat = ([A-Z0-9]{2})([A-Z0-9]{2})([A-Z0-9]{2})
|
str |
module = 'Numeric'
|
int |
n_devices = 14 |
Function Details |
---|
box_range_select(x, y, key, inst, tol=1.0000000000000001e-05)Select an x and y range simultaneously. |
columns(filename, skip=[], delim=None)Read in the specified file and try to extract columns. So far, it will recognise space-, comma-, tab-, or semi-colon-delimited columns. Columns are numbered from 0.
|
Linear(low, high, n)Convenience function for computing n numbers linearly interpolated between low and high. Used as the default function for the cfunc parameter to the contour function. |
list_devices()Print out the list of available devices. |
list_palettes()Print the currently installed palettes to the terminal. |
load(file)Load a previously saved plot instance from file. |
max_hack(array)A quick hack to get around the fact that numarray doesn't have a function max, only a member function. |
min_hack(array)ditto |
pan(x, y, key, inst)Pan so that (x,y) is new center. |
pgspline(xp, yp, x, slope0=None, slope1=None)Compute the cubic spline for a set of data
|
plot(filename, using=[0, 1], with=['l', 'p'], skip=[], delim=None)Convenience function to generate out a plot instance using columnar data from filename, using columns specified in using (a list of 2-tuples, one for each data line). |
save(instance, file)Save a plot instance in file. This uses python's pickle module. |
xrange_select(x, y, key, inst, tol=1.0000000000000001e-05)Select an xrange. |
yrange_select(x, y, key, inst, tol=1.0000000000000001e-05)Select a yrange. |
zoom(x, y, key, inst)Zoom in or out by 50%. |
Variable Details |
---|
devices
|
hex_pat
|
module
|
n_devices
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Sep 25 12:14:22 2007 | http://epydoc.sf.net |