# Mayavi

Python scientific\-visualization application and library with VTK\-based pipelines\.

ID: Q201 · Revision: 185

Type: software · License: BSD\-3\-Clause[^may-repo] · Status: active

Website: https://docs.enthought.com/mayavi/mayavi/



Mayavi is a Python application and library for scientific visualization of scalar, vector and tensor data\. It provides interactive controls and scripting interfaces on top of VTK, allowing users to construct three\-dimensional views without directly assembling every low\-level rendering component\. The current project is also commonly called Mayavi2\.[^may-over][^may-repo]

## Sources, filters and visualizations

A Mayavi pipeline starts with a data source, optionally applies filters and adds visualization modules within a scene\. Separating source data from its visual representation makes it possible to inspect one dataset in several ways\. Users can build this structure through the application or Python interfaces, including mlab for concise plotting\. The application and the library therefore offer different entry points into the same visualization framework\.[^may-over]

## Recording and repeatable work

The application can record selected interface actions into Python code\. The documentation warns that recording an already established session does not recreate objects that existed before recording began\. Arbitrary method calls and some interaction shortcuts are not captured either\. Recorded code is thus a useful starting point for automation, rather than a guarantee of a complete history of everything that produced the current view\.[^may-app]

## Visualizations and input data

The command\-line documentation distinguishes saved MV2 visualizations, Python scripts and supported data files\. Rendered image export is another separate output\. Keeping the original datasets and the scripts or saved visualization is important when continued analysis is required, rather than only reproducing a presentation image\. Shared [VTK](/vtk) data formats can help move numerical inputs between applications, but do not establish that their scene configurations are interchangeable\.[^may-app][^vtk-formats]

## License and alternatives

Mayavi uses BSD 3\-Clause licensing and depends on VTK and a supported GUI toolkit\. The repository describes platform and dependency qualifications, while the inspected user guide is marked as development documentation\. It can replace PyVista for supported Python\-based scientific visualization when its pipeline and interface model fit the work\. Existing PyVista scripts still require adaptation; using VTK underneath both projects does not make their APIs, controls or saved scenes identical\.[^may-repo][^may-over][^pv-repo]

## Capabilities and substitutions

### Interactive and scripted visualization — supported

Application controls and Python interfaces operate on source/filter/module pipelines\.[^may-over]

Use case: Scientific dataset visualization and processing · Platforms: Windows, macOS, Linux · Region: Build, rendering backend, reader/writer and dataset requirements apply

### Complete action recording — limited

Recorder omits existing objects and some methods or interactions\.[^may-app]

Use case: Scientific dataset visualization and processing · Platforms: Windows, macOS, Linux · Region: Build, rendering backend, reader/writer and dataset requirements apply

### [Substitute for PyVista](/pyvista) — limited

Alternative VTK\-based application/library workflow; API and saved\-scene migration require changes\.[^may-over][^pv-repo]

Use case: Supported Python scientific visualization · Platforms: Windows, macOS, Linux · Region: Build, rendering backend, reader/writer and dataset requirements apply

## References

[^may-repo]: [Mayavi repository](<https://github.com/enthought/mayavi>) — README BSD\-3\-Clause, VTK/GUI dependencies and platform support (vendor; retrieved 2026-10-07T04:03:46Z)

[^may-over]: [Mayavi overview](<https://docs.enthought.com/mayavi/mayavi/overview.html>) — Application versus library and sources/filters/modules pipeline (vendor; retrieved 2026-10-07T04:04:32Z)

[^may-app]: [Mayavi application](<https://docs.enthought.com/mayavi/mayavi/application.html>) — MV2 visualizations, image export, Python recording and recorder limits (vendor; retrieved 2026-10-07T04:04:57Z)

[^vtk-formats]: [VTK file formats](<https://docs.vtk.org/en/latest/vtk_file_formats/index.html>) — Legacy, XML and VTKHDF format families; third\-party compatibility caution (vendor; retrieved 2026-10-07T04:04:32Z)

[^pv-repo]: [PyVista repository](<https://github.com/pyvista/pyvista>) — README NumPy\-based meshes, filters, VTK foundation and MIT license (vendor; retrieved 2026-10-07T04:03:57Z)

Source revision: https://substitutefor.net/entities/Q201?revision=185
