@@ -792,7 +792,7 @@ def validate_hatch(s):
792
792
validate_dashlist = _listify_validator (validate_nseq_float (allow_none = True ))
793
793
794
794
795
- def validate_minor_tick_ndivs (n ):
795
+ def validate_int_or_auto (n ):
796
796
"""
797
797
Validate the given ndiv parameter for minor ticks.
798
798
ndiv can be either the string 'auto' or a non-negative integer.
@@ -1352,7 +1352,7 @@ def _convert_validator_spec(key, conv):
1352
1352
'xtick.minor.bottom' : [True , validate_bool ], # draw x axis bottom minor ticks
1353
1353
'xtick.major.top' : [True , validate_bool ], # draw x axis top major ticks
1354
1354
'xtick.major.bottom' : [True , validate_bool ], # draw x axis bottom major ticks
1355
- 'xtick.minor.ndivs' : ['auto' , validate_minor_tick_ndivs ], # default number of minor ticks to display between each pair of major ticks
1355
+ 'xtick.minor.ndivs' : ['auto' , validate_int_or_auto ], # default number of minor ticks to display between each pair of major ticks
1356
1356
1357
1357
# fontsize of the xtick labels
1358
1358
'xtick.labelsize' : ['medium' , validate_fontsize ],
@@ -1376,7 +1376,7 @@ def _convert_validator_spec(key, conv):
1376
1376
'ytick.minor.right' : [True , validate_bool ], # draw y axis right minor ticks
1377
1377
'ytick.major.left' : [True , validate_bool ], # draw y axis left major ticks
1378
1378
'ytick.major.right' : [True , validate_bool ], # draw y axis right major ticks
1379
- 'ytick.minor.ndivs' : ['auto' , validate_minor_tick_ndivs ], # default number of minor ticks to display between each pair of major ticks
1379
+ 'ytick.minor.ndivs' : ['auto' , validate_int_or_auto ], # default number of minor ticks to display between each pair of major ticks
1380
1380
1381
1381
# fontsize of the ytick labels
1382
1382
'ytick.labelsize' : ['medium' , validate_fontsize ],
0 commit comments