Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python matplotlib pyplot set axis equals

from matplotlib import pyplot as plt
plt.plot(range(5))
plt.xlim(-3, 3)
plt.ylim(-3, 3)
plt.gca().set_aspect('equal', adjustable='box')
plt.draw()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #matplotlib #pyplot #set #axis #equals
ADD COMMENT
Topic
Name
3+8 =