[Bug]: LogFormatter minor ticks with minor_thresholds
of (0,0) does not behave as documented
#25896
Labels
minor_thresholds
of (0,0) does not behave as documented
#25896
Bug summary
In investigating #25894 I discovered that despite being documented as:
It actually only removes some minor tick labels (e.g. with base of 10: 11-14 will get labels, but 16-19 (15 is edge case, dependent on floating point rounding, 1.4, or 140 also similar))
Code for reproduction
Actual outcome
Expected outcome
Additional information
Only really affects plots that are zoomed in to much less than one decade, which arguably doesn't make sense to use a log scale, but still seems incongruous with the documented "this turns off minor ticks".
Has to do with when
coeff
rounds down to1
in:matplotlib/lib/matplotlib/ticker.py
Lines 980 to 988 in f051d94
I'm not quite sure what the proper solution is, perhaps making
self._sublabels=set()
instead?Operating system
Linux
Matplotlib Version
3.8 (main)
Matplotlib Backend
No response
Python version
3.11
Jupyter version
No response
Installation
git checkout
The text was updated successfully, but these errors were encountered: