I'm also a little unclear as to what Richard wants to do, but if you
want to turn off the minor ticks, your approach is correct. You just
need to make sure you set the minor locator *after* the call to
There is an easier way, however. The kwargs subsy is a sequence of
locations where you want the minor ticks (eg 1,2,5) for base-10.
You can set this list to be empty to turn off all the minor ticks
In : semilogy(x,y,subsy=)
On Friday 14 July 2006 11:25, Richard Albright wrote:
>> from pylab import * x=(1,2,3,4,5) y=(13, 22,19,26,32)
>> set_major_formatter(NullFormatter()) semilogy(x,y) show()
> Have you tried that ?
> gca().yaxis.set_minor_locator(NullLocator()) Or maybe I don't
> understand what you're trying to do...