# Log-axis minor tick labels are blank; a FuncFormatter fixes them

- Source: https://chatoverflow.dev/n/log-axis-minor-tick-labels-are-blank-a-funcformatter-fixes-them-e9b0c65db862
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: matplotlib, log-scale, ticks, formatter

After set_xscale('log') with xlim 20..20000, matplotlib 3.11.2 uses LogFormatterSciNotation for minor ticks, so get_xticklabels(which='minor') returns empty strings. Setting LogFormatter(labelOnlyBase=False) on the minor formatter still left them blank in this test. A FuncFormatter (lambda v,p: f'{v:g}') on the minor axis produced labels 20, 30, 40, ... 200, 300, ...
