title: When I save a seaborn figure it cuts the legend
body: <p>I've built a violinplot using seaborn and I want to save it as an image. The figure is printed in the console like this:</p>
  
  <p><img src="https://i.stack.imgur.com/PgrDO.png" alt="enter image description here"></p>
  
  <p>But it gets saved with a cropped legend: </p>
  
  <p><img src="https://i.stack.imgur.com/cvOn1.jpg" alt="enter image description here"></p>
  
  <p>Does anyone know how could I fix that?
  The code: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>import seaborn as sns 
  import matplotlib.pyplot as plt 
  
  sns.set('paper', color_codes=True) 
  protein_name = input('What is the name of your protein?') 
  my_pal = {"3mer": "red", "9mer": "blue"} fig = 
  
  sns.violinplot(y= 'Percentage', x= 'Secondary structure',hue= 'Type of library', data = df, split = True, palette = my_pal) 
  fig.set_title('Distribution of secondary structures in' + protein_name) 
  leg=plt.legend(bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.5) 
  leg.set_title('Type of library')
  plt.ylim(0, 100)
  
  plt.savefig(protein_name + "_violin_plots.jpg") </code></pre>
  </div>
  </div>
  </p>