OK,

This fixes the minor locations on y-axis

ax1.yaxis.set_minor_locator(ticker.LogLocator(subs=np.arange(2.0, 10.0)))

Independent of the data-range. It seems like ticker.LogLocator is trying to
adjust the minor locs internally.

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

> Hi,
>
> Another question is, what sets the tick-location on a log scaled axis?
> (that 10^-5, 10^-3, 10^-1, 10^1) It seems as if the range is greater than
> certain value ticks are located this way. Also in a similar way, the
> location of minor ticks are decided. (If the range is big, no minor ticks,
> if the range is not too big, put 4 minor ticks --which is
> very inconvenient to eye, if range is small then nicely locate 9 minor
> ticks.)
>
> Hah, the next probably will be manually forcing the _ticks or ticklocator
> functions.
>
> Anyone else experiencing similar behavior in mpl?
>
> On Fri, Sep 23, 2011 at 1: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
>>
>
>
>
> --
> Gökhan
>



-- 
Gökhan
------------------------------------------------------------------------------
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