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

Skip to content

Commit e799a1d

Browse files
author
Vladimir
committed
doc: Provide better odcumentation when ndiv is set to auto
1 parent 7a649b1 commit e799a1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/ticker.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2885,7 +2885,10 @@ def __init__(self, n=None):
28852885
between major ticks.
28862886
28872887
If *n* is omitted or None, the value stored in rcParams will be used.
2888-
In case *n* is set to 'auto', it will be set to 4 or 5.
2888+
In case *n* is set to 'auto', it will be set to 4 or 5. If the distance
2889+
between the major ticks equals 1, 2.5, 5 or 10 it can be perfectly
2890+
divided in 5 equidistant sub-intervals with a length multiple of
2891+
0.05. Otherwise it is divided in 4 sub-intervals.
28892892
"""
28902893
self.ndivs = n
28912894

0 commit comments

Comments
 (0)