[Matplotlib-users] semilog minor grid problem

2012-12-12 Thread Forrester, Kurt
I cannot seem to get the following code produce what I expect. I want minor tick marks between my major ticks on a base 2 logx plot. ax = axes() ax.set_xlim(0.5, 2) ax.set_xscale('log', basex=2, subsx=range(2,9)) grid(b=True, which='minor') I would have expected there to be minor ticks at 2^(-1:0

Re: [Matplotlib-users] semilog minor grid problem

2012-12-12 Thread Paul Hobson
On Wed, Dec 12, 2012 at 7:55 AM, Forrester, Kurt < kurt.forrester@gmail.com> wrote: > ax.set_xlim(0.5, 2) > ax.set_xscale('log', basex=2, subsx=range(2,9)) > Kurt, That `subsx` kwarg is tricky. Does this example get you closer to what you want? import numpy as np import matplotlib.pyplot a

Re: [Matplotlib-users] semilog minor grid problem

2012-12-12 Thread Forrester, Kurt
Thank you Paul. That is exactly it. I guess I was confused by the example in the help. The addition of your example would be a great addition to the help file. Kurt On 12 December 2012 23:56, Paul Hobson wrote: > > > On Wed, Dec 12, 2012 at 7:55 AM, Forrester, Kurt < > kurt.forrester@gmail