Skip to content

Commit 1c2477d

Browse files
committed
use plt.gca instead of plt.axes for already exhisting implicit axes
1 parent 5e825bd commit 1c2477d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pylab_examples/equal_aspect_ratio.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
plt.title('About as simple as it gets, folks')
1515
plt.grid(True)
1616

17-
plt.axes().set_aspect('equal', 'datalim')
17+
plt.gca().set_aspect('equal', 'datalim')
1818

1919

2020
plt.show()

0 commit comments

Comments
 (0)