Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 724f9a2

Browse files
authored
Merge pull request #15032 from timhoffm/doc-axis-equal
DOC: Clarify effect of axis('equal') on explicit data limits
2 parents 5f5525d + e7b91d8 commit 724f9a2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,10 +1577,13 @@ def axis(self, *args, emit=True, **kwargs):
15771577
'on' Turn on axis lines and labels. Same as ``True``.
15781578
'off' Turn off axis lines and labels. Same as ``False``.
15791579
'equal' Set equal scaling (i.e., make circles circular) by
1580-
changing axis limits.
1580+
changing axis limits. This is the same as
1581+
``ax.set_aspect('equal', adjustable='datalim')``.
1582+
Explicit data limits may not be respected in this case.
15811583
'scaled' Set equal scaling (i.e., make circles circular) by
1582-
changing dimensions of the plot box, then disable further
1583-
autoscaling.
1584+
changing dimensions of the plot box. This is the same as
1585+
``ax.set_aspect('equal', adjustable='box', anchor='C')``.
1586+
Additionally, further autoscaling will be disabled.
15841587
'tight' Set limits just large enough to show all data, then
15851588
disable further autoscaling.
15861589
'auto' Automatic scaling (fill plot box with data).

0 commit comments

Comments
 (0)