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

Skip to content

Commit 3c60590

Browse files
sameshltimhoffm
authored andcommitted
DOC:Update axes documentation (#14989)
* DOC:Update axes documentation Add info about the fact no change in view limits with `autoscale_view()` if axes already set, e.g with `set_xlim()` closes #6055 * fix formatting issues * update note set_xlim ---> `set_xlim`
1 parent 764cc4a commit 3c60590

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2360,6 +2360,10 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True):
23602360
changed after the artist has been added to an Axes instance. In that
23612361
case, use :meth:`matplotlib.axes.Axes.relim` prior to calling
23622362
autoscale_view.
2363+
2364+
If the views of the axes are fixed, e.g. via `set_xlim`, they will
2365+
not be changed by autoscale_view().
2366+
See :meth:`matplotlib.axes.Axes.autoscale` for an alternative.
23632367
"""
23642368
if tight is not None:
23652369
self._tight = bool(tight)

0 commit comments

Comments
 (0)