title: How to save a plot in Seaborn with Python
body: <p>I have a Pandas dataframe and try to save a plot in a png file. However, it seems that something doesn't work as it should. This is my code:</p>
  
  <pre><code>import pandas
  import matplotlib.pyplot as plt
  import seaborn as sns
  
  sns.set(style='ticks')
  
  df = pandas.read_csv("this_is_my_csv_file.csv")
  plot = sns.distplot(df[['my_column_to_plot']])
  plot.savefig("myfig.png")
  </code></pre>
  
  <p>And I have this error:</p>
  
  <pre><code>AttributeError: 'AxesSubplot' object has no attribute 'savefig'
  </code></pre>