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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…