title: Why does LogLocator give me only one tick per 2 decades?
body: <p>First, the code. I'm using Jupyter Notebook 6.0.3 (which may or may not matter).</p>
  
  <pre><code>import matplotlib as mpl
  import matplotlib.pyplot as plt
  import numpy as np
  
  Nmax = 6
  x = np.logspace(-1, Nmax)
  y = 1/x + x
  
  W = 8
  plt.figure(figsize=(W, 4))
  plt.plot(x, y)
  ax = plt.gca()
  ax.set_xscale('log')
  ax.set_yscale('log')
  ax.xaxis.set_major_locator(mpl.ticker.LogLocator())
  </code></pre>
  
  <p>This works fine. I get ticks on the X axis at each power of 10.</p>
  
  <p>But if I set <code>Nmax=7</code>, I only get ticks at <em>even</em> powers of 10 (i.e., 0, 100, etc.) Increasing W (such as <code>W=20</code>) doesn't matter -- I get a larger figure with the same ticks.</p>
  
  <p>I tried reading the docs for <code>LogLocator</code>. They don't actually explain all of the input args.</p>