API Reference for Enthought Tool Suite 3.0.1
Defines commands for the Chaco shell.
session = PlotSession()
Activates and raises a figure window.
Prints the current list of all shell commands. Information on each command is available in that command's docstring (__doc__).
Closes a figure window
Sets the active colormap.
Contour line plots of scalar data in a roughly Matlab-compatible way. Data are assumed to be a scalar image. Any additional kwargs passed in are broadcast to all plots.
Example:
xs = linspace(0,10,100) ys = linspace(0,20,200) x,y=meshgrid(xs,ys) z = sin(x)*y contour(z)
To use previous data, specify names instead of actual data arrays.
Contour polygon plots of scalar data in a roughly Matlab-compatible way. Data are assumed to be a scalar image. Any additional kwargs passed in are broadcast to all plots.
Example:
xs = linspace(0,10,100) ys = linspace(0,20,200) x,y=meshgrid(xs,ys) z = sin(x)*y contourf(z)
To use previous data, specify names instead of actual data arrays.
Creates a new figure window and returns its index.
Turns "hold" on or off, or toggles the current state if none is given.
Returns image file as an array.
Creates an image plot from a file on disk. Takes either filename or image data. Any additional kwargs passed in are broadcast to all plots.
Example 1:
imshow("example.jpg")
Example 2:
image = ImageData.fromfile("example.jpg")
imshow(image)
To use previous data, specify names instead of filename or data arrays.
Plots data on a log-log scale in a Matlab-compatible way. Data is assumed to be X vs Y. Any additional kwargs passed in are broadcast to all plots.
Example:
x = linspace(0, 10.0, 100) loglog(x, x**2, "b-")
To use previous data, specify names instead of actual data arrays.
Adding a log-log plot to an active plot with a currently different scale rescales the plot.
Colormaps scalar data in a roughly Matlab-compatible way. Data are assumed to be a scalar image. Any additional kwargs passed in are broadcast to all plots.
Example:
xs = linspace(0,10,100) ys = linspace(0,20,200) x,y=meshgrid(xs,ys) z = sin(x)*y pcolor(x, y, z)
To use previous data, specify names instead of actual data arrays.
Plots data in a Matlab-compatible way. Data is assumed to be X vs Y. Any additional kwargs passed in are broadcast to all plots.
Example:
x = arange(-pi, pi, pi/100.) plot(x, sin(x), "b-")
To use previous data, specify names instead of actual data arrays.
Creates a plot of a particular type, or using a "best guess" approach based on the data, using chaco semantics.
The number and shape of data arrays determine how the data is interpreted, and how many plots are created.
Saves the active plot to an file. Currently supported file types are: bmp, png, jpg.
Plots data on a semilog scale in a Matlab-compatible way. Data is assumed to be X vs Y. Any additional kwargs passed in are broadcast to all plots.
Example:
x = linspace(0, 10.0 100) semilogx(x, sqrt(x), "b-")
To use previous data, specify names instead of actual data arrays.
Adding a semilog plot to an active plot with a currently different scale rescales the plot.
Plots data on a semilog scale in a Matlab-compatible way. Data is assumed to be X vs Y. Any additional kwargs passed in are broadcast to all plots.
Example:
x = linspace(0, 10.0, 100) semilogy(x, exp(x), "b-")
To use previous data, specify names instead of actual data arrays.
Adding a semilog plot to an active plot with a currently different scale rescales the plot.
Shows all the figure windows that have been created thus far, and creates a GUI main loop. This function is useful in scripts to show plots and keep their windows open, and has no effect when used from the interpreter prompt.
Sets the plot title to text.
Toggles tools on and off.
Toggles the grid perpendicular to the X axis.
Change the scale system for the X-axis ticks.
Sets the horizontal axis label to text.
Toggles the grid perpendicular to the Y axis.
Change the scale system for the Y-axis ticks.
Sets the vertical axis label to text.
© Copyright 2002-2008 Enthought, Inc.