Axes3D - Equal Aspect Ratio

Dear All,

I’m playing around with mpl_toolkits.mplot3d to represent a 3D scatter, but I need the axis’ aspect to be ‘equal’. I tried to :

ax = Axes3D(fig)
ax.set_aspect(‘equal’)

but it doesn’t change anything…

Any tips ?

Thanks a lot in advance,

Thomas

···

Thomas Lecocq

Geologist
Ph.D.Student (Seismology)
Royal Observatory of Belgium


Hi Thomas,.

I'm playing around with mpl_toolkits.mplot3d to represent a 3D scatter, but
I need the axis' aspect to be 'equal'. I tried to :

ax = Axes3D(fig)
ax.set_aspect('equal')

axis("scaled")
worked for me.

Tinne

Hi,

I am searching for a solution of the axis aspect in 3d plots, too.

···

On 10/14/2009 14:01, Tinne De Laet wrote:

axis("scaled")
worked for me.

Tinne

This does not seem to work. At least I am not getting it to work. This command does not seem to be applied to the 3d axis. Do you have an example where this works on 3d axis?

Regards
Paul.