Hi I am writing a code which uses ax.plot_surface()
to plot data on a unit sphere for theta = linspace(0,pi,100)
and phi = linspace(0,2*pi,100)
.
For some reason my image is distorted in the sense that the sphere is ahead of the axis. Does anyone have any idea of why this would be the case?
3D plotting isn't necessarily a good place to start learning how to use plotting libraries; the fundamentals are more often explained in simpler 2d plots. But to get started,
The specific parameters you asked about:
plot_surface
, but does make a big difference in the closely related plot_wireframe
. See this example and experiment with the linewidth value. 1 is default.