ax.xaxis.set_minor_locator(ticker.LogLocator(subs=subs))
ax.xaxis.set_major_formatter(ticker.NullFormatter())
ax.xaxis.set_minor_formatter(ticker.FuncFormatter(ticks_format))
Matplotlib: show labels for minor ticks also