import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
The aspect ratio setting works for 2d graphs:
ax = plt.axes()
ax.plot([0,1],[0,10])
ax.set_aspect('equal','box')
But not for 3d:
ax = plt.axes(projection='3d')
ax.plot([0,1],[0,1],[0,10])
ax.set_aspect('equal','box')
Is there any other syntax for 3d code or is it not implemented?
source
share