From e7b91d8900a6936289f8f9165b14103446c12030 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Sun, 11 Aug 2019 21:01:29 +0200 Subject: [PATCH] Clarify effect of axis(equal) on explicit data limits --- lib/matplotlib/axes/_base.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 67fc83fa4525..363fa911f7eb 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -1577,10 +1577,13 @@ def axis(self, *args, emit=True, **kwargs): 'on' Turn on axis lines and labels. Same as ``True``. 'off' Turn off axis lines and labels. Same as ``False``. 'equal' Set equal scaling (i.e., make circles circular) by - changing axis limits. + changing axis limits. This is the same as + ``ax.set_aspect('equal', adjustable='datalim')``. + Explicit data limits may not be respected in this case. 'scaled' Set equal scaling (i.e., make circles circular) by - changing dimensions of the plot box, then disable further - autoscaling. + changing dimensions of the plot box. This is the same as + ``ax.set_aspect('equal', adjustable='box', anchor='C')``. + Additionally, further autoscaling will be disabled. 'tight' Set limits just large enough to show all data, then disable further autoscaling. 'auto' Automatic scaling (fill plot box with data).