axes3d, initial azimuth and elevation

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

···

--
View this message in context: http://old.nabble.com/axes3d%2C-initial-azimuth-and-elevation-tp34161970p34161970.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

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

Ben Root

···

On Saturday, July 14, 2012, gsal wrote:

So, I have


> 
> 
> 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()
> 
> 
> 

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

got it, thanks.

···

--
View this message in context: http://old.nabble.com/axes3d%2C-initial-azimuth-and-elevation-tp34161970p34162843.html
Sent from the matplotlib - users mailing list archive at Nabble.com.