From 1c2477dd152e1d4f89d76fbe37723dda46eddedd Mon Sep 17 00:00:00 2001 From: patniharshit Date: Sat, 18 Feb 2017 16:10:33 +0530 Subject: [PATCH] use plt.gca instead of plt.axes for already exhisting implicit axes --- examples/pylab_examples/equal_aspect_ratio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pylab_examples/equal_aspect_ratio.py b/examples/pylab_examples/equal_aspect_ratio.py index 9ed478095e6d..2461a0329b77 100755 --- a/examples/pylab_examples/equal_aspect_ratio.py +++ b/examples/pylab_examples/equal_aspect_ratio.py @@ -14,7 +14,7 @@ plt.title('About as simple as it gets, folks') plt.grid(True) -plt.axes().set_aspect('equal', 'datalim') +plt.gca().set_aspect('equal', 'datalim') plt.show()