On Saturday, July 14, 2012, gsal wrote:

>
> So, I have
>
> [code]
>
> from mpl_toolkits.mplot3d import axes3d
> fig = plt.figure(figsize=(10,7))
> ax = fig.gca(projection='3d')
> ax.scatter(xs, ys, zs, c='r')
> plt.show()
>
> [/code]
>
> but when the figure first comes up, it is not to my liking; when I
> interactively (with the mouse) move it around to my liking, the lower right
> corner of the window displays: "azimuth=20 deg, elevation=35 deg...
>
> ...how can I achieve my desired azimuth, elevation from the beginning? is
> it
> possible to set it up? I search the on-line docs and found nothing.
>
> thanks,
>
> gsal


Yes, it is possible.  You can use the view_init() method of your axes
object.

Ben Root
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to