@@ -792,7 +792,7 @@ def validate_hatch(s):
792792validate_dashlist = _listify_validator (validate_nseq_float (allow_none = True ))
793793
794794
795- def validate_minor_tick_ndivs (n ):
795+ def validate_int_or_auto (n ):
796796 """
797797 Validate the given ndiv parameter for minor ticks.
798798 ndiv can be either the string 'auto' or a non-negative integer.
@@ -1352,7 +1352,7 @@ def _convert_validator_spec(key, conv):
13521352 'xtick.minor.bottom' : [True , validate_bool ], # draw x axis bottom minor ticks
13531353 'xtick.major.top' : [True , validate_bool ], # draw x axis top major ticks
13541354 '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
13561356
13571357 # fontsize of the xtick labels
13581358 'xtick.labelsize' : ['medium' , validate_fontsize ],
@@ -1376,7 +1376,7 @@ def _convert_validator_spec(key, conv):
13761376 'ytick.minor.right' : [True , validate_bool ], # draw y axis right minor ticks
13771377 'ytick.major.left' : [True , validate_bool ], # draw y axis left major ticks
13781378 '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
13801380
13811381 # fontsize of the ytick labels
13821382 'ytick.labelsize' : ['medium' , validate_fontsize ],
0 commit comments