title: How to save a plot in Python Pandas
body: <p>This code.:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  
  fig = plt.get_figure()
  fig.savefig("myplot1.pdf")
  </code></pre>
  
  <p>Gives the following error:</p>
  
  <pre><code>AttributeError: 'module' object has no attribute 'get_figure'
  </code></pre>
  
  <p>How can I amend this?</p>