From: danny shevitz <danny_shevitz@ya...> - 2004-07-08 22:08:03
Is there an easy way to turn off the minor gridlines in a (semi)log
plot? I just want the ones that are at the powers of ten.
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
From: John Hunter <jdhunter@ac...> - 2004-07-09 11:42:08
>>>>> "danny" == danny shevitz <danny_shevitz@...> writes:
danny> Howdy, Is there an easy way to turn off the minor gridlines
danny> in a (semi)log plot? I just want the ones that are at the
danny> powers of ten.
Technically, there are not major and minor ticks for the default log
tick locator and formatter, there are only major ticks and the decades
are labeled. It is on my list of things to do to break these into
major and minor ticks. At that point it will be fairly easy to turn
on and off the grids separately for the major and minor ticks.
If you want to look into this, the relevant code is LogLocator and
LogFormatter in matplotlib.ticker.py. It should be fairly easy to
modify this code to support major and minor ticks separately.
Get latest updates about Open Source Projects, Conferences and News.