Matplotlib: show labels for minor ticks also
问题 In matplotlib , when I use a log scale on one axis, it might happen that that axis will have no major ticks , only minor ones. So this means no labels are shown for the whole axis. How can I specify that I need labels also for minor ticks? I tried: plt.setp(ax.get_xticklabels(minor=True), visible=True) ... but it didn't do the trick. 回答1: I've tried many ways to get minor ticks working properly in log plots. If you are fine with showing the log of the value of the tick you can use matplotlib