|Description:||Python package for 3D visualizations|
|Database(s):||Open Hub Wikipedia|
Mayavi is a Python package for 3D scientific visualization. The program was originally developed by Prabhu Ramachandran with Gaël Varoquaux later making substantial contributions. The Enthought company has supported the development.
Mayavi is based on VTK and accepts Numpy data structures. Mayavi2 is a script associated with the package and it invokes a graphical user interface where 3D visualization can be built and manipulated. The mlab subpackage in inspired from matplotlib. Visualizations can be made interactive thought 'traits' package. The Mayavi package has also pipelining support.
Mayavi is used by, e.g., PySurfer.
Mayavi uses, as VTK, a right-handed coordinate system, here shown with 3D points, 3D text and 3D lines:
from mayavi import mlab mlab.points3d(0, 0, 0) # Workaround for https://github.com/enthought/mayavi/issues/82 mlab.text3d(1, 0, 0, "(1,0,0)", scale=0.1) mlab.text3d(0, 1, 0, "(0,1,0)", scale=0.1) mlab.text3d(0, 0, 1, "(0,0,1)", scale=0.1) mlab.plot3d([0, 1], [0, 0], [0, 0]) mlab.plot3d([0, 0], [0, 1], [0, 0]) mlab.plot3d([0, 0], [0, 0], [0, 1]) mlab.show()
- MEG and EEG data analysis with MNE-Python
- The Connectome Viewer Toolkit: an open source framework to manage, analyze, and visualize connectomes