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.[1][2]
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.[2]
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.[3]
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 data formats can help move numerical inputs between applications, but do not establish that their scene configurations are interchangeable.[3][4]
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.[1][2][5]
Capabilities & limitations
Interactive and scripted visualization
supported
Application controls and Python interfaces operate on source/filter/module pipelines.[2]
Scientific dataset visualization and processing · Windows, macOS, Linux · Build, rendering backend, reader/writer and dataset requirements apply
/* wbeditentity-create-item:0| */ sf:1d03d379-1ed1-4b1d-a024-f75228560d6c:v1 | Add Mayavi with cited scientific-visualization workflows, licensing and data portability; no software installed or datasets processed. | attribution: /proposals/1d03d379-1ed1-4b1d-a024-f75228560d6c