title: Show a Pandas plot from a script
body: <p>I have a script (not an IPython notebook) that produces a plot at the end (via a pandas <code>DataFrame</code>). My problem is that such a plot is not showing.</p>
  
  <p>Inspired by <a href="https://stackoverflow.com/questions/28389300/how-to-overlay-a-pandas-plot-matplotlib-plot-and-axis">this</a> I have tried</p>
  
  <pre><code>fig, ax = plt.subplots()
  my_dataframe.plot(ax=ax)
  ax.show()
  </code></pre>
  
  <p>which does not work. The only way I can show my plot is:</p>
  
  <pre><code>plt.figure()
  my_dataframe.plot()
  plt.show()
  </code></pre>
  
  <p>but this brings up also a empty figure that I don't want to have.</p>