Bases: scitools.easyviz.common.BaseClass
Backend using VTK.
Methods
autumn([m]) | |
axes(*args, **kwargs) | Create axes in specified positions. |
axis(*args, **kwargs) | Choose the axis limits and appearance. |
bar(*args, **kwargs) | Draw a bar graph. |
blue_to_yellow([m]) | |
bone([m]) | Gray-scale with a tinge of blue color map. |
box(*args) | Display a box around the boundaries of the current axis. |
brighten(*args) | Brighten or darken color map. |
camdolly(*args) | Dolly camera. |
camlight(*args, **kwargs) | Create or set position of a light. |
camlookat(*args) | Move camera and target to view specified objects. |
campos(*args) | Camera position. |
camproj(*args) | Camera projection. |
camroll(*args) | Roll camera. |
camtarget(*args) | Camera target. |
camup(*args) | Camera up vector. |
camva(*args) | Camera view angle. |
camzoom(*args) | Zoom camera. |
caxis(*args) | Set the limits for the color axis. |
cla(*args) | Clear the current axis. |
clabel(*args) | Control labeling of contours. |
clf() | Clear current figure. |
close(*args) | Close figure. |
closefig(num) | Close figure window with number ‘num’. |
closefigs() | Close all figure windows. |
colorbar(*args) | Display a color bar. |
colorcube([m]) | Enhanced color-cube color map. |
colormap(*args) | Specify colormap. |
coneplot(*args, **kwargs) | Draw a 3D cone plot. |
contour(*args, **kwargs) | Draw a 2D contour plot. |
contour3(*args, **kwargs) | Draw 3D contour plot. |
contourf(*args, **kwargs) | Draw filled contour plot. |
contourslice(*args, **kwargs) | Draw contour lines in slice planes. |
cool([m]) | Shades of cyan and magenta color map. |
copper([m]) | Linear copper-tone color map. |
daspect(*args) | Change the data aspect ratio. |
figure(*args, **kwargs) | Extension of BaseClass.figure |
fill(*args, **kwargs) | Draw filled 2D polygons. |
fill3() | Draw filled 3D polygons. |
flag([m]) | Alternating red, white, blue, and black color map. |
gca() | Return the current axis in the current figure. |
gcf() | Return current figure. |
getp(*args) | Get object properties or an attribute in this backend instance. |
gray([m]) | |
grid(*args) | Toggle the display of grid lines. |
hardcopy([filename, quality, progressive, ...]) | Save a hardcopy of the current figure to file (with the given filename). |
hidden(*args) | Toggle hidden line removal in the current axis. |
hold(*args) | Change the hold state of the current axis. |
hot([m]) | |
hsv([m]) | |
init() | |
ishold() | Return the hold state (True if hold is on, and False if it is off). |
isocaps(*args, **kwargs) | Draw isosurface end caps. |
isosurface(*args, **kwargs) | Draw isosurfaces from 3D scalar fields. |
jet([m]) | |
legend(*args, **kwargs) | Add legend(s) to the current plot. |
light(**kwargs) | Add a light to the current axis. |
lines([m]) | Color map with the line colors. |
loglog(*args, **kwargs) | Draw a loglog plot with logarithmic scaling on x- and y-axis. |
material(*args) | Set the material reflectance mode. |
mesh(*args, **kwargs) | Draw a 3D mesh surface. |
meshc(*args, **kwargs) | Draw a mesh with a contour plot beneath. |
openfig([filename]) | Load figures saved in a file (with the given filename). |
pcolor(*args, **kwargs) | Draw a 2D pseudocolor plot. |
pink([m]) | Pastel shades of pink color map. |
plot(*args, **kwargs) | Draw line and scatter plots. |
plot3(*args, **kwargs) | Draw lines and points in 3D space. |
prism([m]) | Prism color map. |
quiver(*args, **kwargs) | Draw arrows from a 2D vector field. |
quiver3(*args, **kwargs) | Draw velocity vectors in 3D space. |
savefig([filename]) | Save all current figures to a file (with the given filename). |
semilogx(*args, **kwargs) | Draw a semilog plot with logarithmic scaling on x-axis. |
semilogy(*args, **kwargs) | Draw a semilog plot with logarithmic scaling on y-axis. |
setp(*args, **kwargs) | Set object properties or attributes in this backend instance. |
shading(*args) | Control the color shading of surfaces. |
show() | Redraw the current figure. |
slice_(*args, **kwargs) | Draw volumetric slice plot. |
spring([m]) | |
stem(*args, **kwargs) | Draw a stem plot. |
streamline(*args, **kwargs) | Draw streamlines from 2D or 3D vector data. |
streamribbon(*args, **kwargs) | Draw stream ribbons from 3D vector data. |
streamslice(*args, **kwargs) | Draw streamlines in axis aligned slice planes. |
streamtube(*args, **kwargs) | Draw stream tubes from 3D vector data. |
subplot(*args, **kwargs) | Create axes in tiled positions. |
summer([m]) | |
surf(*args, **kwargs) | Draw a 3D solid surface. |
surfc(*args, **kwargs) | Draw a solid surface with contours beneath. |
surfl(*args, **kwargs) | 3D shaded surface with lighting. |
title(*args) | Add title to the current plot. |
vga([m]) | Windows colormap for 16 colors. |
view(*args) | Specify viewpoint. |
white([m]) | All white color map. |
winter([m]) | |
xlabel(*args) | Add a label to the x-axis. |
xlim(*args) | Set or get limits on x axis. |
ylabel(*args) | Add a label to the y-axis. |
ylim(*args) | Set or get limits on y axis. |
zlabel(*args) | Add a label to the z-axis. |
zlim(*args) | Set or get limits on z axis. |
Alternating red, white, blue, and black color map.
Save a hardcopy of the current figure to file (with the given filename). The file format (image type) is determined from the extension of the filename. If any changes have been made by working directly on the backend instance, set the keyword argument replot to False to stop Easyviz from replotting the current figure and destroying those changes. The figure can be stored in either a vector PostScript (PS/EPS) or PDF file using GL2PS or a image file (PNG/PNM/JPEG/TIFF/BMP) using a corresponding vtkWriter instance. PostScript output can also be generated using vtkPostScriptWriter if vector_file is set to False. TeX output is also available, but only the text output will be saved to the file.
If the given filename has no extension, then EPS output will be used.
Keyword arguments:
- quality – Sets the quality of the resulting image. Affects only
- JPEG images. Given as an integer between 0 and 100 where 100 results in the best quality (but also the largest file). The default is quality=100.
- progressive – Sets whether to use progressive JPEG generation or
- not. Defaults to False.
- vector_file – If True (default), the figure will be stored as a
- vector file. This is only true if either PS, EPS, or PDF are choosen as the output file format.
Additional keyword arguments (only in affect if the vector_file argument is set to True and the file format is either PS, EPS or PDF):
- landscape – Sets whether to use landscape or portrait orientation.
- A True value result in landscape orientation. Defaults to False.
- raster3d – If True, this will write 3D props as raster images
- while 2D props are rendered using vector graphic primitives. Defaults to False.
- compress – Compression when generating PostScript or PDF output.
- The default is False (no compression).