From: Benjamin R. <ben...@ou...> - 2011-09-23 19:34:26
|
On Fri, Sep 23, 2011 at 2:28 PM, Gökhan Sever <gok...@gm...> wrote: > 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. > > I guess I would have to see your code. The y-axis ticks works fine in the examples: http://matplotlib.sourceforge.net/examples/pylab_examples/log_demo.html Viewing the pdf or hires png shows 8 minor ticks. Now, as for the x-axis, there are no minor ticks. That might be an issue... Ben Root |