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
5
votes
1 answer

Setting the color of mayavi.mlab.mesh axes labels

I am trying to set the color of the axes labels in a plot generated using mayavi.mlab.mesh to white using the following extract of code: ax = m.axes(color=(1.0,1.0,1.0),nb_labels=4, xlabel='Delay (ps)', ylabel='Wavelength (nm)',…
user3645594
  • 121
  • 1
  • 4
5
votes
1 answer

Mayavi How to do Delaunay Triangulation with xz data instead of xy data

I am trying to plot some experimental data and I am facing a problem with the triangulation as explained more lengthily here. I figure out that the solution might be to change the grid from a xy to xz one and use the y as the elevation. Howevever I…
TazgerO
  • 535
  • 6
  • 22
5
votes
1 answer

Save data to VTK using Python and tvtk with more than one vector field

I'm trying to save three sets of vector quantities corresponding to the same structured grid (velocity, turbulence intensity and standard deviation of velocity fluctuations). Ideally, I'd like them to be a part of the same vtk file but so far I have…
Artur
  • 445
  • 6
  • 13
5
votes
2 answers

How to visualize 3D delaunay triangulation

I have a set of 3D points which I've used scipy.spatial.Delaunay to do the triangulation / tetrahedralization. I now have a set of unique faces of all of the tetrahedra, and would like to visualize these in 3D. Are there any Python libraries (or…
bard
  • 2,762
  • 9
  • 35
  • 49
5
votes
1 answer

Enthought Canopy Mayavi font size bug

The font size setting in Enthough Canopy Mayavi mlab appears to be broken. Neither the command: mlab.axes.label_text_property.font_size = 12 (e.g.) nor the direct menu font size command (advanced settings) works. I have logged a bug report with…
dcnicholls
  • 391
  • 1
  • 5
  • 15
5
votes
2 answers

Load 3d scene into Silverlight

To cut the long story short: Is it possible to load a .vrml into Silverlight and render the 3d scene? Now some more background information why I want to do this. I'd like to implement the following setup: Do some long-running calculations on the…
Thorsten Kranz
  • 12,492
  • 2
  • 39
  • 56
5
votes
1 answer

Constrain Mayavi mouse drag to rotating Earth around its axis

Using iPython Notebook, I have been able to bring up a globe of the Earth with code like: from mayavi import mlab from mayavi.sources.builtin_surface import BuiltinSurface ocean_blue = (0.4, 0.5, 1.0) r = 6371 # km sphere = mlab.points3d(0, 0, 0,…
Brandon Rhodes
  • 83,755
  • 16
  • 106
  • 147
4
votes
2 answers

Mapping a texture to a mayavi mesh

I'm using mayavi in python to visualize some data. I have a surface in 3D space and I want to map an image to it. I have looked at mayavi documentation and all I could find was this, which really doesn't help me much. Has anybody done something like…
katrasnikj
  • 3,151
  • 3
  • 16
  • 27
4
votes
0 answers

Cannot install mayavi/vtk with pip3 install due "Failed building wheel for mayavi" but install works on virtualenv

When I try to install mayavi normally with pip3 install mayavi it gives the error ERRROR: Failed building wheel for mayavi and does not install. Strangely, if I create the virtual environment with python3 -m venv venv get into the virtualenv then…
John Doenut
  • 185
  • 3
  • 11
4
votes
0 answers

Mayavi : surface plot and 3D contours

Good evening everyone, I am a long time user of Matplotlib and I recently discovered Mayavi. With Matplotlib, I can plot a 3D surface with projected contours of the surface plot for each axis and I was wondering if the same could be done with…
Loïc Poncin
  • 511
  • 1
  • 11
  • 30
4
votes
4 answers

I want to generate a mesh from a point cloud in Python

I have a point cloud from different parts of the human body, like an eye and I want to do a mesh. I tried to use Mayavi and Delaunay but I don't get a good mesh. The points of the cloud are in total disorder. I have my point cloud in .npz…
Joel_Developer
  • 63
  • 1
  • 2
  • 10
4
votes
0 answers

Converting GUI-application into .exe-file with cx_Freeze: no plugin found for toolkit qt4

My program contains mayavi, traits and pyqt5 elements in order to visualize something in 3D. I tried to convert my GUI-Application with cx_Freeze and it created the exe-file ,but running it I got the error: no traitsui.toolkits plugin found for…
roflcopter122
  • 165
  • 1
  • 14
4
votes
1 answer

Mayavi not rendering solid surface correctly

I've just re-installed Fedora 28 on my computer and decided to try Mayavi in Python 3, where it has previously only been working in Python 2. I installed Mayavi from pip with pip3 install mayavi --user without any problems. However, when I run this…
Warrick
  • 697
  • 10
  • 19
4
votes
1 answer

creating standalone exe using pyinstaller with mayavi import

I have a program that helps visualize some data in 3D by plotting a surface and a cloud of points to see how they relate to the surface. For the visualization I am using mayavi since it was easy to set up and does a better job than matplotlib in 3D.…
user2731076
  • 689
  • 1
  • 6
  • 21
4
votes
0 answers

Mayavi.mlab: scale/limit/set axes or aspect ratio

I have data that essentially looks like that: (minimum working example) import mayavi.mlab as mlab pts = mlab.points3d([1,2,3,4,5], [1,2,3,4,5], [1,2,3,4,500], [1,2,3,4,100]) mlab.show() And this already shows my problem: because of the huge…
Julian
  • 299
  • 2
  • 15