## [Matplotlib-users] axes3d, initial azimuth and elevation

 [Matplotlib-users] axes3d, initial azimuth and elevation From: gsal - 2012-07-14 20:16:59 ```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. ```

 [Matplotlib-users] axes3d, initial azimuth and elevation From: gsal - 2012-07-14 20:16:59 ```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. ```
 Re: [Matplotlib-users] axes3d, initial azimuth and elevation From: Benjamin Root - 2012-07-15 03:10:16 Attachments: Message as HTML ```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 ```
 Re: [Matplotlib-users] axes3d, initial azimuth and elevation From: gsal - 2012-07-15 04:21:43 ```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. ```