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

Skip to content

Commit 00ea794

Browse files
author
Vladimir
committed
refactor, doc: Update documentation
1 parent e799a1d commit 00ea794

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/rcsetup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ def validate_hatch(s):
785785

786786
def _validate_minor_tick_ndivs(n):
787787
"""
788-
Validate ndiv parameter related with the minor ticks.
788+
Validate ndiv parameter related to the minor ticks.
789789
It controls the number of minor ticks to be placed between
790790
two major ticks.
791791
"""
@@ -798,7 +798,7 @@ def _validate_minor_tick_ndivs(n):
798798
except (RuntimeError, ValueError):
799799
pass
800800

801-
raise ValueError("'tick.minor.ndivs' must be a 'auto' or non-negative int")
801+
raise ValueError("'tick.minor.ndivs' must be 'auto' or non-negative int")
802802

803803

804804
_prop_validators = {
@@ -1313,8 +1313,8 @@ def _convert_validator_spec(key, conv):
13131313
"xtick.minor.bottom": validate_bool, # draw bottom minor xticks
13141314
"xtick.major.top": validate_bool, # draw top major xticks
13151315
"xtick.major.bottom": validate_bool, # draw bottom major xticks
1316-
"xtick.minor.ndivs": _validate_minor_tick_ndivs,
13171316
# number of minor xticks
1317+
"xtick.minor.ndivs": _validate_minor_tick_ndivs,
13181318
"xtick.labelsize": validate_fontsize, # fontsize of xtick labels
13191319
"xtick.direction": validate_string, # direction of xticks
13201320
"xtick.alignment": ["center", "right", "left"],
@@ -1337,8 +1337,8 @@ def _convert_validator_spec(key, conv):
13371337
"ytick.minor.right": validate_bool, # draw right minor yticks
13381338
"ytick.major.left": validate_bool, # draw left major yticks
13391339
"ytick.major.right": validate_bool, # draw right major yticks
1340-
"ytick.minor.ndivs": _validate_minor_tick_ndivs,
13411340
# number of minor yticks
1341+
"ytick.minor.ndivs": _validate_minor_tick_ndivs,
13421342
"ytick.labelsize": validate_fontsize, # fontsize of ytick labels
13431343
"ytick.direction": validate_string, # direction of yticks
13441344
"ytick.alignment": [

0 commit comments

Comments
 (0)