@@ -783,7 +783,7 @@ def validate_hatch(s):
783783validate_dashlist = _listify_validator (validate_nseq_float (allow_none = True ))
784784
785785
786- def validate_minor_tick_ndivs (n ):
786+ def validate_int_or_auto (n ):
787787 """
788788 Validate the given ndiv parameter for minor ticks.
789789 ndiv can be either the string 'auto' or a non-negative integer.
@@ -1344,7 +1344,7 @@ def _convert_validator_spec(key, conv):
13441344 'xtick.minor.bottom' : [True , validate_bool ], # draw x axis bottom minor ticks
13451345 'xtick.major.top' : [True , validate_bool ], # draw x axis top major ticks
13461346 'xtick.major.bottom' : [True , validate_bool ], # draw x axis bottom major ticks
1347- 'xtick.minor.ndivs' : ['auto' , validate_minor_tick_ndivs ], # default number of minor ticks to display between each pair of major ticks
1347+ 'xtick.minor.ndivs' : ['auto' , validate_int_or_auto ], # default number of minor ticks to display between each pair of major ticks
13481348
13491349 # fontsize of the xtick labels
13501350 'xtick.labelsize' : ['medium' , validate_fontsize ],
@@ -1368,7 +1368,7 @@ def _convert_validator_spec(key, conv):
13681368 'ytick.minor.right' : [True , validate_bool ], # draw y axis right minor ticks
13691369 'ytick.major.left' : [True , validate_bool ], # draw y axis left major ticks
13701370 'ytick.major.right' : [True , validate_bool ], # draw y axis right major ticks
1371- 'ytick.minor.ndivs' : ['auto' , validate_minor_tick_ndivs ], # default number of minor ticks to display between each pair of major ticks
1371+ 'ytick.minor.ndivs' : ['auto' , validate_int_or_auto ], # default number of minor ticks to display between each pair of major ticks
13721372
13731373 # fontsize of the ytick labels
13741374 'ytick.labelsize' : ['medium' , validate_fontsize ],
0 commit comments