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
|