API Reference for Enthought Tool Suite 2.7.1
Application title:
app_title = 'Chaco Plot Window: %s'
Numerical constants:
BIG = 1e+020
color_re = re.compile('[ymcrgbwk]')
Color schemes:
color_schemes = [ ('blue', 'solid'), ('red', 'solid'), ('black', 'solid'), ('magenta', 'solid'), ('blue', 'dot'), ('red', 'dot'), ('black', 'dot'), ('magenta', 'dot'), ('blue', 'dash'), ('red', 'dash'), ('black', 'dash'), ('magenta', 'dash') ]
color_trans = { Const('y') : Const('yellow'), Const('m') : Const('magenta'), Const('c') : Const('cyan'), Const('r') : Const('red'), Const('g') : Const('green'), Const('b') : Const('blue'), Const('w') : Const('white'), Const('k') : Const('black') }
DEBUG = True
draw = redraw
Valid save file types:
file_types = [ '.pdf', '.png', '.jpg', '.pcx', '.tif' ]
Standard images sizes:
image_sizes = ((320, 240), (640, 480), (800, 600), (1024, 768), (1280, 1024), (1600, 1200))
line_re = re.compile('--|-\\.|[-:]')
line_trans = { Const('-') : Const('solid'), Const(':') : Const('dot'), Const('-.') : Const('dot dash'), Const('--') : Const('dash') }
This one isn't quite right:
marker_re = re.compile('[ox+s^v]|(?:[^-])[.]')
marker_trans = { Const('.') : Const('dot'), Const('o') : Const('circle'), Const('x') : Const('cross'), Const('+') : Const('plus'), Const('s') : Const('square'), Const('^') : Const('triangle'), Const('v') : Const('down triangle') }
NotImplemented = 'NotImplemented'
Currently selected object:
object = None
ShellPlotFrame_factory = ShellPlot
simple_types = (str, float, int)
Exceptions:
SizeMismatch = 'SizeMismatch'
SMALL = 9.9999999999999995e-021
xlabel = xtitle
ylabel = ytitle
Correct usage is: axis('fit'|'auto'|x_lo,x_hi,y_lo,y_hi)
Correct usage is: bar([x,]Y[,width][,'grouped'|'stacked'][,bar_color])
Correct usage is: barh([x,]Y[,width][,'grouped'|'stacked'][,bar_color])
Add a colorbar for the active figure to the current figure.
Set the colormap on the active figure.
Contour plot -- takes a matrix of heights and number of contour levels, and displays a contour plot of the data, optionally backed with an scaled colormap of the data behind it.
Correct usage is: errorbar([X,]Y,E[,U][,color])
Correct usage is: grid([True|False])
Correct usage is: hist(Y[,x|n][,color])
Correct usage is: hline(y[,'=label'][,color])
Correct usage is: hold([True|False])
Plot an image. Data is either a 2 dimensional array, in which case we treat it as a colormap plot. You may specifiy a colormap object, otherwise a standard grayscale colormap is used. If the data is a 3 dimensional array, it should be a width x height x 3 array, with the final dimension being Red, Green, and Blue values. These can be floats in the range [0,1], or integers in the range [0,255]. If scale is True on a colormapped plot, image will auto-scale your data to linearly fit in the [0,1] range. You may also specify scale=(min,max), in which case, that range will be taken as the proper range of pixels in the colormap. You may optionally specify x and y, which control the x and y range into which the image will be plotted. By default the image will be plotted into the coordinates of the matrix, i.e. 1 pixel in the matrix = 1 unit on the scale.
imagesc is just like image with auto-scaling on by default.
Read an image file into an array. Accepts a file name and will automatically handle most formats (as provided for by PIL)
Correct usage is: scatter(X,Y[,C][,markertype]
Correct usage is: subplot(rows,columns,index) or subplot(rci)
Correct usage is: text(x,y,text[,color])
Correct usage is: title(text)
Correct usage is: vline(y[,'=label'][,color])
Correct usage is: xaxis(low|'normal'|'auto'|'tight'|'fit', [high[,tick_interval]])
Correct usage is: xtitle(text)
Correct usage is: yaxis(low|'normal'|'auto'|'tight'|'fit', [high[,tick_interval]])
Correct usage is: ytitle(text)
Copyright © 2002-2008 Enthought, Inc.