title: How to save image created with 'pandas.DataFrame.plot'?
body: <p>When trying to save plot image created with 'pandas.DataFrame.plot' from ' pandas.core.series.Series' object :</p>
  
  <pre><code>%matplotlib inline
  type(class_counts) # pandas.core.series.Series
  class_counts.plot(kind='bar',  figsize=(20, 16), fontsize=26)
  </code></pre>
  
  <p>Like this:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  plt.savefig('figure_1.pdf', dpi=300)
  </code></pre>
  
  <p>results in empty pdf file. How to save image created with 'pandas.DataFrame.plot'? </p>