I am attempting to plot a 3D surface, with the following code:
fig = plt.figure()
ax = fig.add_subplot(projection = '3d')
ax.plot_surface(x, y, z)
ax.set_aspect('equal') # not relevent to the problem
plt.show()
Now, this outputs a figure, as one would expect, but the problem is that the axes are a little unconventional.
I would like to output the figure such that the x, y (not necessarily z) axes zeros line up, or essentially, like the following (which can be obtained by just panning the figure manually):
Is there a matplotlib.pyplot
command I'm missing?