2011/5/22 burak nebioğlu <buraknebioglu@…287…>
I have been using Matplotlib for a while and I have to make a Volumetric slice plot. I created 2d images by using imshow() but couldnt find anything to create 3d image with those 2d ones.
I hope we (Matplotlib user’s) have a solution for this.
Not with imshow, but something might be possible with contourf3d. I haven’t tried it out in this way, but with the development branch of matplotlib, I recently added a feature to be able to “squash” contourf plots to a particular offset. See this demo image:
With this feature, you could contourf3d 2D slices of your 3D data and just set the zoffset to the appropriate location. I attached some demo code. The data is only 2D, so I can’t demonstrate exactly what you want, but this should give you a good idea of where to go.
Remember, this feature is new, and is only found in the master branch on github.
I hope this helps!
contourf3d_demo2.rst (890 Bytes)