Dear all,
I want to visualize the image through the stereographic projection (that maps
the extended complex plane to the unit sphere), of a circle and a line from the plane.
I imported:
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = fig.add_subplot(111, projection=‘3d’)
If I plot only the the sphere and a circle in the plane xoy and set:
ax.set_aspect(‘equal’)
all is OK, but inserting one more plot for the image of the circle onto the sphere,
the aspect is changed and the sphere is displayed as an ellipsoid.
My question is: how could I lock the aspect in order to keep the geometry of the sphere?
Thanks,
Em
Which version of matplotlib are you using? There used to be some issues with this, but I could have sworn I resolved this a while back.
Ben Root
···
On Mon, Apr 7, 2014 at 2:40 PM, Emilia Petrisor <emilia.petrisor@…287…> wrote:
Dear all,
I want to visualize the image through the stereographic projection (that maps
the extended complex plane to the unit sphere), of a circle and a line from the plane.
I imported:
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = fig.add_subplot(111, projection=‘3d’)
If I plot only the the sphere and a circle in the plane xoy and set:
ax.set_aspect(‘equal’)
all is OK, but inserting one more plot for the image of the circle onto the sphere,
the aspect is changed and the sphere is displayed as an ellipsoid.
My question is: how could I lock the aspect in order to keep the geometry of the sphere?
Thanks,
Em
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users