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
0
votes
0 answers

Annoying streaks across rendered objects in Mayavi2

Whenever I render a surface in Mayavi with an opacity < 1, I can see annoying streaks in the rendered object in some camera view. For example, the following screenshot of the contour3d plot example from…
0
votes
0 answers

Adding other objects (scalarbar, axes, etc) in Mayavi figure for offline prevents visualization of data

I am displaying some volumetric scalar data and quickly rendering the scene and saving the results to a png. This all works fine. However if I add some helpful objects such as a scalarbar or even axes to the figure it only renders the newly added…
abnowack
  • 370
  • 1
  • 13
0
votes
1 answer

Equal bin sizes including border using mayavi imshow?

I am doing a very simple task of plotting a 2d numpy histogram and displaying with with mayavi.mlab.imshow(my2dhistogram, interpolate=False) For a 5x5 array the output is the following, I would like the bins along the border to be the same size as…
abnowack
  • 370
  • 1
  • 13
0
votes
1 answer

2D plot in python

I have 3 sets of data x,y,z where z represents the scan steps and z=50. Corresponding to z I have a each values of x and y. I want to plot a line or contour plot at 5th, 10th and 20th scan steps. Is it possible and which function should I use?
user2536176
  • 19
  • 1
  • 7
0
votes
0 answers

the axes control of mlab.axes

This is just a small question. I use the sentence below to control the three axes ranges. mlab.axes(xlabel='x', ylabel='y', zlabel='z',ranges=(0,10000,0,10000,0,22),nb_labels=10) In fact the real data ranges are (3000,4000),(5000,6000),(0,22)…
questionhang
  • 735
  • 2
  • 12
  • 31
0
votes
2 answers

mayavi mlab get current axes

Is there a way of a procedure similar to plt.gca() to get a handle to the current axes. I first do a=mlab.surf(x, y, u2,warp_scale='auto') and then b=mlab.plot3d(yy, yy, (yy-40)**2 ,tube_radius=20.0) but the origin of a and b are different and the…
Sleepyhead
  • 1,009
  • 1
  • 10
  • 27
0
votes
0 answers

Plot paraview data format file in mayavi

I am solving PDE numerically using FEniCS with its python interface. I am using the ipython notebook to code in python and I want to plot the result using mayavi. I don't want to use paraview to plot it. The code which I used to save the result in…
0
votes
1 answer

Python 2.7: Mayavi Flow function using six input arrays

I am attempting to accurately visualize some CFD data using Mayavi's flow function. I have six 100x100x100 arrays (X, Y, Z, U, V, W), pertaining to the positions and velocities of the particles being analyzed. These were created from single-column…
salamander
  • 181
  • 1
  • 3
  • 15
0
votes
0 answers

python, ImportError: No module named mayavi.modules.scalar_cut_plane

I get the following error when i try to visualize something on a program that uses mayavi: CONSOLE OUTPUT: File "/home/meniwis/syscave/src/python/syscave/gui/flowsim3d.py", line 15, in from mayavi.modules.scalar_cut_plane import…
xeex
  • 189
  • 1
  • 4
  • 14
0
votes
1 answer

how to avoid exponential ticks in mayavi's mlab.axes?

Is there a parameter to control that?I can not find it. I use import numpy as np from enthought.mayavi import mlab from scipy.interpolate import griddata from enthought.mayavi.modules.axes import Axes x,y,z…
questionhang
  • 735
  • 2
  • 12
  • 31
0
votes
1 answer

how to 3dplot 3 colum data via mlab.surf

data is like this: x,y,z 1.1,2.2,3.3 5.5,1.45,6.77 Below is my code which can only plot a plane import numpy as np from enthought.mayavi import mlab x,y,zs =np.loadtxt('test',delimiter=',',usecols=(0,1,2),unpack=True,skiprows=1) z =…
questionhang
  • 735
  • 2
  • 12
  • 31
0
votes
2 answers

Plotting surface of implicitly defined volume

Having a volume implicitly defined by x*y*z <= 1 for -5 <= x <= 5 -5 <= y <= 5 -5 <= z <= 5 how would I go about plotting its outer surface using available Python modules, preferably mayavi? I am aware of the function mlab.mesh, but I don't…
karlson
  • 5,325
  • 3
  • 30
  • 62
0
votes
1 answer

current size of traitsui editor

I have a tvtk SceneEditor for a mayavi scene in my traitsui application. When defining this editor, I asked it to have size 500x500. Because of the mayavi toolbar, the scene editor itself understands that it has a smaller size than this under…
aestrivex
  • 5,170
  • 2
  • 27
  • 44
0
votes
1 answer

Mayavi and Texture Mapping (or turning a 2D image into a 3D image)

I have a project where I have a 2D image but I need to then turn this into a 3D object. I already have the skeleton model of the object, it is a simple matter of applying color to the surface. I have been looking around and it seems 3D programs…
user1750948
  • 719
  • 2
  • 10
  • 27
0
votes
1 answer

Unable to load the package 'enthought.mayavi.mlab'

I'm trying to load the package enthought.mayavi.mlab in python's spider enviorment: import enthought.mayavi.mlab as mlb And I get the following error message: Traceback (most recent call last): File "", line 1, in File…
user2129468
  • 681
  • 3
  • 8
  • 12
1 2 3
40
41