I'd like to show minor ticks on a log-log plot, but I've not found a solution. The answer here doesn't seem to work as expected. My MWE is
%pylab inline
plot(array([10**x for x in range(-20,0)]), array([10**x for x in range(-20,0)]))
yscale('log')
xscale('log')
show()
and I would like to have ticks at, say, every decade, or every multiple of 3 and 10. How can I achieve this?
EDIT:
One particularly desirable behavior is to have a (minor, unlabelled) tick at every decade, and a (major, labelled) tick at every second or third decade, and to have the locations of the labelled ones be at my control. For example: I'd like to have the ability to make (..., 10^-6, 10^-3, 1, 10^3, ...) labelled and (...10^-5, 10^-4, 10^-2, 0.1, 10, 100, ...) unlabeled; or alternately (..., 10^-4, 10^-2, 1, 10^2, ...) labelled and (...10^-5, 10^-3, 0.1, 10, ...) unlabeled.