On Fri, Sep 23, 2011 at 2:28 PM, Gökhan Sever <gokhanse...@gmail.com> wrote:

> On Fri, Sep 23, 2011 at 1:22 PM, Benjamin Root <ben.r...@ou.edu> wrote:
>
>> On Fri, Sep 23, 2011 at 2:07 PM, Gökhan Sever <gokhanse...@gmail.com>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
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to