Imshow for 3D? (Python / Matplotlib)

Is there an equivalent to the matplotlib imshow () function for 3D drawing data stored in a 3D numpy array?

+8
python numpy matplotlib
source share
4 answers

This is poorly defined, since you will see material that was not on the surface of the cube?

The Mayavi documentation has various approaches to how to accomplish what you want to do, including a cut plane and voxel-specific alpha channels. See visualization of bulk scalar data .

Suffice it to say that Mayavi is required for this and goes beyond the capabilities of matplotlib (convenient, but limited) 3D.

+5
source share

matplotlib cannot display a three-dimensional image. you can use mayavi .

+4
source share

Perhaps you can use mplot3d to build 3D objects. Here is one example code.

0
source share

What you want is a kind of three-dimensional image (block). Perhaps you could draw it into pieces (using imshow () or whatever tool you want).

Maybe you could tell us which plot you want?

0
source share

All Articles