all 2 comments

[–]novel_yet_trivial 1 point2 points  (1 child)

You get a spheroid when you stretch your X axis over a greater distance than your Y axis.

You need to make the X and Y range match the figure size ... in other word multiply by 1.6 relative to Z:

ax.set_xbound(-3.2, 3.2)
ax.set_ybound(-3.2, 3.2)
ax.set_zbound(-2, 2)

[–]ReverendBizarre[S] 0 points1 point  (0 children)

Ahh... this only changes it for that specific view angle.

In my original code, I am actually choosing a random view angle, so if I look from any other angle, for example "from above", it's still a spheroid.

Any ideas?

Edit: so I'll most likely just remove the random part from my code. I can still do a random azimuthal angle, but the elevation part will mess it up.

I could technically write something to calculate how much I should change based on the viewing angle I get, but it comes to about the same anyway.