imshow in Axes3D?

Hi,

I would like to create a plot with a series of parallel 2-D slices in
order to illustrate 3-D data. I got excited when I saw the example of
translucent bar plots, which is similiar in some ways to what I had in
mind. But it seems that there is no imshow method in Axes3D. How hard
would that be to add? (By the way, I do know about mayavi and have used
it, but there are things about it that make it somewhat difficult to
work with.)

Jon

···

--
______________________________________________________________
Jonathan D. Slavin Harvard-Smithsonian CfA
jslavin@...1081... 60 Garden Street, MS 83
phone: (617) 496-7981 Cambridge, MA 02138-1516
cell: (781) 363-0035 USA
______________________________________________________________

imshow() and friends work a little bit differently from the other plotting commands. Unlike the other plotting functions, imshow() does not return any Collection objects, rather it returns an AxesImage object. Most of the other functions are merely wrappers around their 2D equivalent with a few extra keyword arguments and a 2D to 3D converter call for the collection objects returned. In order to support imshow() in Axes3D, a 3D version of the AxesImage object will need to be made and should be able to be created from an existing 2D version.

If someone wants to create a 3D version of AxesImage and add it to art3d.py, I would be more than happy to take the patch. But at this time, I am too unfamiliar with AxesImage objects and am more focused on fixing the current feature-set.

Ben Root

···

On Tue, May 10, 2011 at 9:25 AM, Jonathan Slavin <jslavin@…1081…> wrote:

Hi,

I would like to create a plot with a series of parallel 2-D slices in

order to illustrate 3-D data. I got excited when I saw the example of

translucent bar plots, which is similiar in some ways to what I had in

mind. But it seems that there is no imshow method in Axes3D. How hard

would that be to add? (By the way, I do know about mayavi and have used

it, but there are things about it that make it somewhat difficult to

work with.)

Jon