|
From: Forrester, K. <kur...@gm...> - 2012-12-13 06:49:48
|
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 <pmh...@gm...> wrote:
>
>
> On Wed, Dec 12, 2012 at 7:55 AM, Forrester, Kurt <
> kur...@gm...> 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 as plt
> fig, ax = plt.subplots()
> ax.set_xlim(0.5, 10)
> ax.set_xscale('log', basex=2, subsx=np.arange(1.,2.1,0.1))
> ax.xaxis.grid(True, which='minor')
> plt.show()
>
> -paul
>
|