In matplotlib, once the main ticks are too close to each other on the chart loglog. Instead of installing them manually, is it possible to use something similar MaxNLocatorto setting ticks at n-places in the log scale?
import numpy as np
import pylab as p
x=np.logspace(1,20,10)
fig=p.figure()
ax1=fig.add_subplot(121)
ax1.loglog(x,x,'o')
ax2=fig.add_subplot(122)
ax2.loglog(x,x,'o')
fig.show()

source
share