Код: Выделить всё
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
Код: Выделить всё
ax = plt.axes()
ax.plot([0,1], [0,10])
ax.set_aspect('equal', 'box')
Код: Выделить всё
ax = plt.axes(projection='3d')
ax.plot([0,1], [0,1], [0,10])
ax.set_aspect('equal', 'box')
Подробнее здесь: https://stackoverflow.com/questions/813 ... pect-ratio