Hello all,

I'm having trouble setting the aspect ratio of an Axes3D to equal. Is it
possible ?

Here is example illustrating the problem:

from matplotlib.pylab import *
from mpl_toolkits.mplot3d import Axes3D
from  numpy import *
n = 100
r = 3
t = linspace(0,2*pi, n)
ax = Axes3D(figure())
ax.set_aspect('equal')
ax.plot(xs=cos(t), ys=sin(t), zs=0)
ax.plot(xs=[0]*n, ys=r*sin(t), zs=r*cos(t))
show()

As a workaround, I currently plot a big cube around my data.
I would be very glad if someone had a cleaner solution.

Thanks by advance

Regards, Sebastien
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to