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

Enthought Mayavi2 running errors on command line and through Mayavi

If I run code from Python, the Mayavi2 plot window will either disappear really quick or if it doesn't, I can't interact with it because it freezes. However, if I run mayavi2 /path/to/code, I can interact with the figure without any…
dustin
  • 4,309
  • 12
  • 57
  • 79
0
votes
2 answers

numpy distutils erroring when trying to install with pip

I updated my Linux distro to Ubuntu 13.04 today and installed all my Python packages. However some of the packages encounter the following error: numpy.distutils.system_info.X11NotFoundError: X11 libraries not found I Googled but found nothing…
dustin
  • 4,309
  • 12
  • 57
  • 79
0
votes
2 answers

Enthought Mayavi embedding with wx problems

At first my running system: I use Windows 8 Pro and Mayavi 4.3 from the repository together with wxPython 2.9.4.0 at Python 2.7.4 but also had the same issue with mayavi 4.2.1 from the EPD package... As I try to embedd mayavi into a notebook panel I…
0
votes
1 answer

Problems with pip installed FiPy using the Mayavi viewer

Having installed FiPy using pip with a brew installation of Python 2.7.3 on OSX 10.8.2, I ran the following sample test code: from fipy import * mesh = Grid3D(nx=50, ny=100, nz=10, dx=0.1, dy=0.01, dz=0.1) x, y, z = mesh.cellCenters xyzVar =…
Paul
  • 49
  • 1
  • 7
0
votes
0 answers

Creating 3D Models from 2D arrays

I am currently using mayavi to do some work with 3D models. The coordinates for my points are divided into 3 different 2d arrays, namely, x, y, and z. Having it set up like this makes it easy for me to use a function such as mesh, and apply color to…
user1750948
  • 719
  • 2
  • 10
  • 27
0
votes
0 answers

Embedding Python in Visual C++ and runtime error R6034

So over the past week or so I have been experimenting with embedding a python script into C. I have done this in successive stages. For one of my first attempts I would call my python script from C and within my python script a 2D colormap would…
user1750948
  • 719
  • 2
  • 10
  • 27
0
votes
1 answer

Mayavi/IPython shell not expected behavior

I am trying to learn tips and tricks for MAYAVI, here. For instance, I am trying to do the texture things in paragraph texture mapping actors. This is some command line code, and I thought I could prompt this directly in IPython (I am with Win…
kiriloff
  • 25,609
  • 37
  • 148
  • 229
0
votes
1 answer

Mayavi Python - is Enthought distribution mandatory?

I would like to use mayavi for 3d data visualization. I downloaded Mayavi module package, as well as dependencies VTK, wxpython, conjigobj. At compile time with IDLE, I have nevertheless a warning No module named traits.api. I find that this module…
kiriloff
  • 25,609
  • 37
  • 148
  • 229
-1
votes
2 answers

Using Mayavi mlab over VNC Throws OpenGL error

I'm having some difficulty using Mayavi mlab in python with PyCharm IDE from the MNE-Python environment. I access the Conda environment with Mayavi and VTK over a VNC session using a xvnc server from my local MacOS to a Linux cluster machine. The…
Alex He
  • 9
  • 3
-1
votes
1 answer

how to open a new widget by using mousepressEvent

here i am tacking x,y position by using mouse press event when i click any position i want to open a new widget?in that widget i want to create a 3d plot,can you pls help me how to do this problem given bellow is my code: def mousePressEvent(self,…
-1
votes
1 answer

"Fast" interactive plot of a 2d numpy array in python

I have a need to visualize a 2d numpy array in python. Not a contour plot, not a surface plot. Plot a point on a z axis for every (x,y) element in the 3d array. My data is a 1024 x 1024 array, but I suppose I could decimate it if I had to. I…
garyp
  • 967
  • 7
  • 36
-1
votes
2 answers

AttributeError in tvtk about SetViewPlaneNormal

NOTE: A temporary solution has been found : open camera.py, use pass and comment the content in function _view_plane_normal_changed then recompile it. I'm using python(x,y)2.7.5.1 . When I use some packages using tvtk like mayavi,it raise a…
-2
votes
1 answer

Python crashing with openGl2

When I try to execute a function I wrote using mayavi, python will crash and give me a message: Error: In D:\Build\VTK-7.0.0\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 545 vtkWin32OpenGLRenderWIndow(00002533B0F8): Gl version 2.1 with …
userpy
  • 1
  • 1
-4
votes
1 answer

What package has this python function?

I found this code in web but it doesn't work. from numpy import * from mayavi import * N = 100 a = 0. b = 1. dt = b / N; q = [1., -1., 1., -1.] qpos = [[0.56, 0.56, 0.50], [0.26, 0.76, 0.50], [0.66, 0.16, 0.50], [0.66,…
Reyjhonny
  • 43
  • 6
1 2 3
40
41