Axes3D - size of the Z axe

Hello everybody

How can I control the size of the Z axis in a 3D plot using Axes3D in
matplotlib?

regards

german

I think for an axes like "ax = Axes3D(fig)"
you can use "ax.set_zlim3d( ... )"

Kind regards,
Matthias

···

On Friday 02 October 2009 14:24:17 German Ocampo wrote:

Hello everybody

How can I control the size of the Z axis in a 3D plot using Axes3D in
matplotlib?

Hello

After search in google, I found a solution changing the initial point
of view of the plot, using a function which control the angle and
elevation of the initial view:

ax.view_init(elevation, azimuth) and tried and works

ax = Axes3D(fig)
ax.view_init(64, -30)

Question: Is it possible to include this function in the Axes3D
documentation web page? or where I could find it in the webpage?

http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/api.html?highlight=axes3d#module-mpl_toolkits.mplot3d.axes3d

Thanks

German

···

On Fri, Oct 2, 2009 at 1:24 PM, German Ocampo <gerocampo@...287...> wrote:

Hello everybody

How can I control the size of the Z axis in a 3D plot using Axes3D in
matplotlib?

regards

german

I was looking for something similar. It seems Axes3D() takes the angle as argument:

import matplotlib.pyplot as plt

import mpl_toolkits.mplot3d as m3d

fig = plt.figure()
ax = m3d.Axes3D(fig, elev = 20.0, azim = 45)

in degrees.

2009/10/2 German Ocampo <gerocampo@…2015…87…>

···

Hello

After search in google, I found a solution changing the initial point

of view of the plot, using a function which control the angle and

elevation of the initial view:

ax.view_init(elevation, azimuth) and tried and works

ax = Axes3D(fig)

ax.view_init(64, -30)

Question: Is it possible to include this function in the Axes3D

documentation web page? or where I could find it in the webpage?

http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/api.html?highlight=axes3d#module-mpl_toolkits.mplot3d.axes3d

Thanks

German

On Fri, Oct 2, 2009 at 1:24 PM, German Ocampo <gerocampo@…287…> wrote:

Hello everybody

How can I control the size of the Z axis in a 3D plot using Axes3D in

matplotlib?

regards

german


Come build with us! The BlackBerry® Developer Conference in SF, CA

is the only developer event you need to attend this year. Jumpstart your

developing skills, take BlackBerry mobile applications to market and stay

ahead of the curve. Join us from November 9-12, 2009. Register now!

http://p.sf.net/sfu/devconf


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users