title: Python Pandas Histogram Log Scale
body: <p>I'm making a fairly simple histogram in with pandas using</p>
  
  <p><code>results.val1.hist(bins=120)</code></p>
  
  <p>which works fine, but I really want to have a log scale on the y axis, which I normally (probably incorrectly) do like this:</p>
  
  <pre><code>fig = plt.figure(figsize=(12,8))
  ax = fig.add_subplot(111)
  plt.plot(np.random.rand(100))
  ax.set_yscale('log')
  plt.show()
  </code></pre>
  
  <p>If I replace the <code>plt</code> command with the pandas command, so I have:</p>
  
  <pre><code>fig = plt.figure(figsize=(12,8))
  ax = fig.add_subplot(111)
  results.val1.hist(bins=120)
  ax.set_yscale('log')
  plt.show()
  </code></pre>
  
  <p>results in many copies of the same error:</p>
  
  <pre><code>Jan  9 15:53:07 BLARG.local python[6917] &lt;Error&gt;: CGContextClosePath: no current point.
  </code></pre>
  
  <p>I do get a log scale histogram, but it only has the top lines of the bars, but no vertical bars or colors. Am doing something horribly wrong or is this just not supported by pandas?</p>
  
  <p>From Paul H's code I added <code>bottom=0.1</code> to <code>hist</code> call fixes the problem, I guess there is some kind of divide by zero thing, or something.</p>