How to 'rotate' a 3D plot?

Hi,

I have successfully created a 3D scatter plot with mplot3d, but how
can I rotate the plot around e.g. the z-axis?

I do not want to use the user interface but I would like to use a
command to do that. But I could not find good documentation anywhere
and the commands attributed to the Axes3D also do not show anything
obvious.

Thanks
  Alex

There is an uncommented, and therefore undocumented function:

axes3d.view_init(elev, azim)

that you can use to rotate the axes. If you have not already, I suggest you use the current SVN version of MPL instead of the 0.99.1 version. Mplot3d has some more features in the trunk, but it is still rough around the edges.

-Ben

···

-----Original Message-----
From: Alexander Dietz [mailto:alexanderdietz1@…982…]
Sent: Tuesday, March 16, 2010 1:25 PM
To: Matplotlib-users@lists.sourceforge.net
Subject: [Matplotlib-users] How to 'rotate' a 3D plot?

Hi,

I have successfully created a 3D scatter plot with mplot3d, but how can I rotate the plot around e.g. the z-axis?

I do not want to use the user interface but I would like to use a command to do that. But I could not find good documentation anywhere and the commands attributed to the Axes3D also do not show anything obvious.

Thanks
  Alex

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Thanks a lot, that seems to work!

Alex

···

On Tue, Mar 16, 2010 at 18:54, Ben Axelrod <BAxelrod@...2066...> wrote:

There is an uncommented, and therefore undocumented function:

axes3d.view_init(elev, azim)

that you can use to rotate the axes. If you have not already, I suggest you use the current SVN version of MPL instead of the 0.99.1 version. Mplot3d has some more features in the trunk, but it is still rough around the edges.

-Ben

-----Original Message-----
From: Alexander Dietz [mailto:alexanderdietz1@…982…]
Sent: Tuesday, March 16, 2010 1:25 PM
To: Matplotlib-users@lists.sourceforge.net
Subject: [Matplotlib-users] How to 'rotate' a 3D plot?

Hi,

I have successfully created a 3D scatter plot with mplot3d, but how can I rotate the plot around e.g. the z-axis?

I do not want to use the user interface but I would like to use a command to do that. But I could not find good documentation anywhere and the commands attributed to the Axes3D also do not show anything obvious.

Thanks
Alex

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options