title: Exporting SVG files from plots created in Python
body: <p>So I'm trying to export some plots I created using matplotlib and seaborn.</p>
  
  <p>I create my plot with:</p>
  
  <pre><code>import pandas as pd
  import matplotlib as plt
  import matplotlib.pyplot as plt
  from matplotlib import pyplot as plty
  import seaborn as sns
  %matplotlib inline
  from IPython.display import set_matplotlib_formats
  set_matplotlib_formats('png', 'pdf')
  
  df = pd.read_excel('test.xlsx', sheetname='IvT')
  
  sns.set_style("white")
  plt.figure(figsize=(12,10))
  plt.xlabel('Test', fontsize=18)
  plt.title ('Test', fontsize=22)
  #sns.boxplot(df[['Short total']])
  sns.boxplot(df[['Short total']])
  plt.show()
  </code></pre>
  
  <p>If I try to export it with</p>
  
  <pre><code>matplotlib.pyplot.savefig("test.svg", format="svg")
  </code></pre>
  
  <p>I get an error message saying </p>
  
  <blockquote>
    <p>--------------------------------------------------------------------------- NameError                                 Traceback (most recent call
    last)  in ()
          1 
    ----> 2 matplotlib.pyplot.savefig("test.svg", format="svg")</p>
    
    <p>NameError: name 'matplotlib' is not defined</p>
  </blockquote>