From: Gökhan S. <gok...@gm...> - 2011-09-24 04:47:48
|
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 <gok...@gm...> 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 <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 >> > > > > -- > Gökhan > -- Gökhan |