开发者

imshow for 3D? (Python / Matplotlib) [closed]

开发者_StackOverflow中文版 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 9 years ago.

does there exist an equivalent to matplotlib's imshow()-function for 3D-drawing of datas stored in a 3D numpy array?


This is ill-defined, since how would you see stuff that was not at the surface of the cube?

The Mayavi documentation has various approaches of ways to do what you want to do, including cut planes and voxel-specific alpha channels. See visualizing volumetric scalar data.

Suffice it to say this requires Mayavi and is rather beyond the scope of matplotlib's (handy, but limited) 3D features.


matplotlib cannot plot 3d image. you can use mayavi instead.


Maybe you could use mplot3d to plot 3D objects. Here is one of the example codes.


What you want is a kind of 3D image (a block). Maybe you could plot it by slices (using imshow() or whatever the tool you want).

Maybe you could tell us what kind of plot you want?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜