mayavi

How to change a mayavi scene background color?

How to change a mayavi scene background color? Question: This is probably a very simple question but I couldn’t find the answer anywhere! I have embedded a mayavi scene into PyQt5 and I want to change the background color. (which is available from change properties button of scene in GUI) My code looks like this: …

Total answers: 1

How to plot a 3D density map in python with matplotlib

How to plot a 3D density map in python with matplotlib Question: I have a large dataset of (x,y,z) protein positions and would like to plot areas of high occupancy as a heatmap. Ideally the output should look similiar to the volumetric visualisation below, but I’m not sure how to achieve this with matplotlib. My …

Total answers: 1

How can I render 3D histograms in python?

How can I render 3D histograms in python? Question: I want to make plots like these from Hacker’s Delight: What ways are there to accomplish this in Python? A solution that makes it easy to interactively adjust the graph (changing the slice of X/Y currently being observed) would be ideal. Neither matplotlib nor the mplot3d …

Total answers: 1

installing Mayavi with pip – no module named vtk

installing Mayavi with pip – no module named vtk Question: I want to use Mayavi. Situation I use a MacBook Air, with OSX 10.7.3. I use Python 2.7.2 I have virtualenv installed. But I have not used it for this installation. I’ve manually installed all it’s dependencies, including VTK. For VTK, I followed its installation …

Total answers: 7

How to draw a line in Python Mayavi?

How to draw a line in Python Mayavi? Question: 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? Asked By: Luka || Source Answers: Check the documentation for mayavi; …

Total answers: 3