Skip to content

Mayavi2: Introduction

December 18, 2010

The Mayavi project includes two related packages for 3-dimensional visualization:

1. Mayavi2

1. Mayavi2
A tool for easy and interactive visualization of data.
A Traits-based wrapper for the Visualization Toolkit, a popular open-source visualization library.

How to install Mayavi2 in Ubuntu:
sudo apt-get install Mayavi2

Testing your installation:
The easiest way to test if your installation is OK is to run the mayavi2 application like so:

To get more help on the command try this:
mayavi2 -h

General Layout of User Interface:

The menus let you open files, load modules, set preferences etc.

Pipeline Tree view:
* Right click a tree node to rename, delete, copy the objects.
* Left click on a node to edit its properties on the object editor below the tree.
* It is possible to drag the nodes around on the tree. For example it is possible to drag and move a module from one set of Modules to another, or to move a visualization from one scene to another.

Object editor:
This is where the properties of Mayavi pipeline objects can be changed when an object on the pipeline is clicked.

Mayavi scene:
This is where the visualization of the data happens.  One can interact with this scene via the mouse and the keyboard.

Python interpreter:
The built-in Python interpreter that can be used to script Mayavi and do other things.

Application log messages may be seen here.

Visualizing Data:

To visualize data, we must load data into mayavi2.  Mayavi2 support several file format to load most notable VTK, alternatively mlab (can be used to load data from numpy array).

Once loaded we can use Filter to modify, Modules to visualize data.

Modules and Filters:

Modules are the objects that perform the visualization itself: they use data to create the visual elements on the scene. Here is a list of the Mayavi modules along with a brief description.

Filters transform the data, but do not display it. They are used as an intermediate between the data sources and the modules. Here is a list of the Mayavi Filters.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: