Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword Num Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad
N/A N/A 
This script demonstrates how one can use the Mayavi application framework
without displaying Mayavi's UI.

Note: look at the end of this file to see how the non gui plugin is
chosen instead of the default gui mayavi plugin.

This should be run as::

  $ python nongui.py

Or::

  $ mayavi2 script.py

 os.path join abspath mayavi.scripts.util get_data_dir mayavi.plugins.app Mayavi get_non_gui_plugins MyApp N/A Mayavi N/A run N/A N/A self N/A N/A N/A This is executed once the application GUI has started.
        *Make sure all other MayaVi specific imports are made here!*
         mayavi.sources.vtk_file_reader VTKFileReader mayavi.modules.outline Outline mayavi.modules.axes Axes mayavi.modules.grid_plane GridPlane mayavi.modules.image_plane_widget ImagePlaneWidget mayavi.modules.text Text mayavi.modules.contour_grid_plane ContourGridPlane mayavi.modules.iso_surface IsoSurface N/A script N/A self script N/A N/A N/A script new_scene N/A r N/A VTKFileReader N/A N/A N/A r initialize N/A join N/A get_data_dir N/A abspath __file__ heart.vtk N/A N/A N/A script add_source r N/A t N/A Text text MayaVi rules! x_position 0.2 y_position 0.9 width 0.8 N/A N/A N/A t property color N/A 1 1 0 N/A N/A N/A script add_module t N/A o N/A Outline N/A N/A N/A script add_module o N/A a N/A Axes N/A N/A N/A script add_module a N/A gp N/A GridPlane N/A N/A N/A script add_module gp N/A gp N/A GridPlane N/A N/A N/A gp grid_plane axis y N/A N/A N/A script add_module gp N/A gp N/A GridPlane N/A N/A N/A script add_module gp N/A N/A N/A gp grid_plane axis z N/A ipw N/A ImagePlaneWidget N/A N/A N/A script add_module ipw N/A N/A N/A ipw ipw slice_position 16 N/A cgp N/A ContourGridPlane N/A N/A N/A script add_module cgp N/A N/A N/A cgp grid_plane axis y N/A N/A N/A cgp grid_plane position 15 N/A iso N/A IsoSurface compute_normals True N/A N/A N/A script add_module iso N/A N/A N/A iso contour contours N/A 200.0 N/A s N/A N/A script engine current_scene N/A cam N/A N/A s scene camera N/A N/A N/A cam azimuth 45 N/A N/A N/A cam elevation 15 N/A N/A N/A s render N/A N/A N/A N/A __name__ __main__ N/A N/A m N/A MyApp N/A plugins N/A get_non_gui_plugins N/A N/A N/A m main plugins plugins