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

Skip to content

Commit 06f6c36

Browse files
authored
Merge pull request #17915 from timhoffm/doc-set_ticks-limits
Document that set_ticks() increases view limits if necessary
2 parents aaa9213 + a67bfc0 commit 06f6c36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/axis.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,6 +1801,9 @@ def set_ticks(self, ticks, minor=False):
18011801
"""
18021802
Set this Axis' tick locations.
18031803
1804+
If necessary, the view limits of the Axis are expanded so that all
1805+
given ticks are visible.
1806+
18041807
Parameters
18051808
----------
18061809
ticks : list of floats

0 commit comments

Comments
 (0)