That is correct. Due to the design of the mplot3d module, many functions that are expected to work for 2D plots do not work for 3D plots. I have been working on bringing mplot3d to feature-pariety with the rest of mpl. The upcoming release should address many of these issues. However, the set_aspect issue is a harder nut to crack correctly.
If you need a work-around, I have a git branch where I introduce the matlab-esque pbaspect where one can specify the ratios of the x, y, and z axes relative to each other. Note that right now, at least one has to be 1. It does introduce some other bugs, though, which is why it won’t be in the next release.
Keep an eye on that branch for future updates, though.
I hope this helps,
On Mon, Jul 4, 2011 at 11:54 AM, Nico Schlömer <nico.schloemer@…287…> wrote:
this issue has come up before (see
and now it was me who got bitten by it: As far as I can see, for
mplot3d axes, it is not possible to set the aspect ratio of the axes
to something other than ‘auto’ – anyways, ‘equal’ does not make
sure that the units of lenght on all axes are the same.
For me, this functionality is important as I would like to highlight
that certain angles are right angles which obviously isn’t the case if
the illustrations are distorted in that way.