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. |
_Axis |
A class used by the Plot class. |
_ColorPoint |
Class used to display (x,y) points (like _Point), but each point is colored differently, depending on the value of a third array (z). |
_Contour |
Class used to plot a contour of data. |
_ErrorBar |
A class used by the Plot class to store information about drawing errorbars |
_Hist |
Class used by Plot to make a Histogram. |
_Image |
Class used to display an image representation of data. |
_Label |
A class used by the Plot class. |
_Layout |
A class that handles the page layout of the graph. |
_Legend |
A class used by the Plot class to make a legend. |
_Line |
Class used by Plot and to store information about lines. |
_Object |
An object in the plot. |
_Palette |
|
_Point |
Class used by Plot to store information about drawing points. |
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%. | |
_evspline(xp,
x,
c0,
c1,
c2,
c3)
| |
Adjust the range to be plotted so that it fits nicely on the page. | |
_set_color(color)
| |
_spline(x,
c0,
c1,
c2,
c3)
|
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 |
dict |
_color_table = {'Blue': 4, 'Pink': 13, 'Green3': 10, 'Gr...
|
NoneType |
_data = None |
str |
_default_clab_color = 'white'
|
int |
_default_clab_int = 40 |
int |
_default_clab_min = 10 |
str |
_default_color = 'white'
|
int |
_default_font = 1 |
float |
_default_fsize = 1.0 |
int |
_default_linestyle = 1 |
int |
_default_linewidth = 1 |
int |
_default_lw = 2 |
str |
_default_palette = 'real'
|
int |
_default_symbol = 1 |
str |
_default_transfer = 'linear'
|
_Palette |
_pgpalette = <pygplot._Palette instance at 0x717530>
|
NoneType |
_plot = None |
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%. |
_scalerange(data)Adjust the range to be plotted so that it fits nicely on the page. Return a list with adjusted minimum and maximum values from 'data'. |
Variable Details |
---|
devices
|
hex_pat
|
module
|
n_devices
|
_color_table
|
_data
|
_default_clab_color
|
_default_clab_int
|
_default_clab_min
|
_default_color
|
_default_font
|
_default_fsize
|
_default_linestyle
|
_default_linewidth
|
_default_lw
|
_default_palette
|
_default_symbol
|
_default_transfer
|
_pgpalette
|
_plot
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Sep 25 12:14:22 2007 | http://epydoc.sf.net |