From: Gökhan S. <gok...@gm...> - 2011-09-23 19:28:12
|
On Fri, Sep 23, 2011 at 1:22 PM, Benjamin Root <ben...@ou...> wrote: > On Fri, Sep 23, 2011 at 2:07 PM, Gökhan Sever <gok...@gm...>wrote: > >> Hello, >> >> Considering this example plot: >> http://imageshack.us/photo/my-images/27/imagefki.png/ >> >> How can I get the minor ticks showing correctly? (ie., 9 minor ticks per >> decade likewise for the x-axis) >> >> For some reason >> >> axis.set_minor_locator(LogLocator(numdecs=9) is not producing the desired >> output. >> >> Any hints? >> >> Thanks. >> >> -- >> Gökhan >> >> > By default, setting the scale to log (e.g., ax.set_yscale('log')) should > automatically turn the minor ticks on for you. Note that depending on your > version of mpl, there may be a slight error in the documentation for > LogLocator. > > Ben Root > > Hi, I set the log scales for both axes. However, as you see in the image y-axis has only 4 minor ticks (8 expected) where as x-axis has none. I am using a couple days old mpl build. -- Gökhan |