API Reference for Enthought Tool Suite 3.2.0
Functions related to creating the engine or the figures.
Clear the current figure.
You can also supply the figure that you want to clear.
Forces a redraw of the current figure.
Creates a new scene or retrieves an existing scene. If the mayavi engine is not running this also starts it.
Keyword arguments
name: The name of the scene. bgcolor: The color of the background (None is default). fgcolor: The color of the foreground (None is default). engine: The mayavi engine that controls the figure. size: The size of the scene created, in pixels. May not apply for certain scene viewer.
Return a handle to the current figure.
You can supply the engine from which you want to retrieve the current figure, if you have several mayavi engines.
Save the current scene. The output format are deduced by the extension to filename. Possibilities are png, jpg, bmp, tiff, ps, eps, pdf, rib (renderman), oogl (geomview), iv (OpenInventor), vrml, obj (wavefront)
If an additional size (2-tuple) argument is passed the window is resized to the specified size in order to produce a suitably sized output image. Please note that when the window is resized, the window may be obscured by other widgets and the camera zoom is not reset which is likely to produce an image that does not reflect what is seen on screen.
Any extra keyword arguments are passed along to the respective image format's save method.
| Local name | Refers to |
|---|---|
| gc | gc |
| get_engine | enthought.mayavi.tools.engine_manager.get_engine |
| IntType | types.IntType |
| np | numpy |
| options | enthought.mayavi.tools.engine_manager.options |
| view | enthought.mayavi.tools.camera.view |
© Copyright 2002-2009 Enthought, Inc.