Questions tagged [mayavi]

MayaVi is a data visualization library written for use with Python.

Wiki:

Mayavi is a Sanskrit word meaning "magician" and in this case is a free and easy to use scientific data visualizer. It is GUI-based and provides full functionality for python as well as PLOT3D data. It can be used to visualize many types of data including computational grids, scalar vectors, and time series.

Mayavi seeks to provide easy and interactive visualization of 3-D data. It offers:

  • An (optional) rich user interface with dialogs to interact with all data and objects in the visualization.
  • A simple and clean scripting interface in Python, including one-liners, or an object-oriented programming interface.
  • Mayavi integrates seamlessly with numpy and scipy for 3D plotting and can even be used in IPython interactively, similarly to Matplotlib.

Tag usage:

The tag can be used in programming related problems in visualizing 3-d data. Please avoid theoretical problems and installation related problem on stackoverflow. Please note superuser.com is another stack exchange website for question and answers related to such problems.

Read more:

614 questions
8
votes
1 answer

Render a mayavi scene with a large pipeline faster

I am using mayavi.mlab to display 3D data extracted from images. The data is as follows: 3D camera parameters as 3 lines in the x, y, x direction around the camera center, usually for about 20 cameras using mlab.plot3d(). 3D coloured points in…
Simon Streicher
  • 2,638
  • 1
  • 26
  • 30
8
votes
2 answers

How to draw a line in Python Mayavi?

How to draw a line in 3D space in Python Mayavi? Is there a function from MLAB module that allows me to specify the start and end point of the line which will be drawn?
Luka
  • 1,718
  • 3
  • 19
  • 29
7
votes
1 answer

Is it possible to plot implicit 3d equation using sympy?

Is there a way to plot a 3 variable implicit equation using sympy. Going by docs it has only support for implicit 2d plots. Or are there any other options for plotting a 3d plot using python where the equation can be an input from user
Srinath Mandava
  • 3,384
  • 2
  • 24
  • 37
7
votes
2 answers

Can Mayavi render a figure scene with a transparent background?

I am generating a mesh plot using mayavi.mlab and want the background opacity to be 0. (or transparent). Is this possible?
user3645594
  • 121
  • 1
  • 4
7
votes
1 answer

Probing/sampling/interpolating VTK data using python TVTK or MayaVi

I would like to visualise a VTK data file (OpenFOAM output) using python. The plot I would like to make is a 1-d line plot of a quantity between two endpoints. To do so, the unstructured data should be interpolated on the points which lie between…
Newfarmer
  • 349
  • 2
  • 9
7
votes
2 answers

How would you represent the following 3D data in Matplotlib or Mayavi?

I have a large set of data which I'm trying to represent in 3D hoping to spot a pattern. I've spent quite some time reading, researching and coding, but then I realized my main problem is NOT the programming, but actually choosing a way to visualize…
Zambi
  • 363
  • 1
  • 3
  • 9
6
votes
0 answers

How to plot an isosurface of a 3D complex field with Mayavi avoiding color interpolation artifacts?

Taking as a basis the Atomic orbital example in the example gallery, I'm trying to visualize a 3D arbitrary complex field using an isosurface, in the way the cyclic HSV colormap illustrates the phase of the field. However, there is a problem in the…
Rafael
  • 402
  • 5
  • 17
6
votes
1 answer

PyQt5 fails as "suitable UI Toolkit" for Mayavi with Python 3.6

I'd like to run SfePy demos but there is a problem displaying using Mayavi. See http://sfepy.org/doc-devel/installation.html#requirements I've: created an anaconda Python 3.6 environment (per this answer) using conda create --name SfePy36…
uhoh
  • 3,713
  • 6
  • 42
  • 95
6
votes
1 answer

VisPy animation point by point from NumPy array

I'm wondering if something is possible using VisPy, or if I should start looking for other alternatives. Here's what's going on - I'm writing an undergraduate thesis on some of the paradox-like situations of Special Relativity. What I am doing is…
AstroJason
  • 71
  • 4
6
votes
2 answers

VTK cannot construct a proper closed surface with vtkClipClosedSurface

Here's a rough explanation of what I do in vtk: Create a surface (a minimal surface, not too relevant what it is, the geometry is important though: the gyroid has two labyrinths that are completely shut off from each other). use…
Ian
  • 1,688
  • 18
  • 35
6
votes
3 answers

ValueError: cannot set toolkit to wx because it has already been set to qt4

The following import from mayavi import mlab generates the value error. I installed Mayavi using setuptools (as described here). The gui works fine (some bugs here and there but still I can use the modules etc.) I am guessing some thing didn't went…
imranal
  • 656
  • 12
  • 35
6
votes
1 answer

modern approach to 3D visualization in python: discuss mayavi

Is Mayavi the "modern" approach to 3D visualization scripting with python? By modern, I mean a well informed person would choose to use Mayavi in 2015 for a variety of project requirements. I first discovered it about a month ago, and it works well…
user3391229
  • 798
  • 9
  • 17
6
votes
1 answer

Matplotlib-like Subplots in Mayavi?

What I'm looking to do is have a pair of 3D figures side by side. In matplotlib, I was able to create these subplots like so: ax1 = fig.add_subplot(121, projection='3d') I'm trying to use Mayavi for my 3D plotting here, because it solves some…
Jesse
  • 1,662
  • 3
  • 17
  • 18
6
votes
1 answer

Using python and mayavi to create a 3D streamplot

It is currently quite easy to produce a 2D streamplot with python and matplotlib because streamplot was recently incorporated to matplotlib by Tom Flannaghan and Tony Yu. Although it is possible to produce certain types of 3D plots with matplotlib,…
treddy
  • 2,771
  • 2
  • 18
  • 31
6
votes
1 answer

mayavi mlab.savefig() gives an empty image

I am trying to learn mayavi2 for python and can not get my savefig to show my plots. I found this example code: from numpy import pi, sin, cos, mgrid dphi, dtheta = pi/250.0, pi/250.0 [phi,theta] =…
Johan
  • 105
  • 1
  • 6
1 2
3
40 41