|
From: Paul H. <pmh...@gm...> - 2012-12-12 23:56:45
|
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
|