title: How do I save the text in python plots editable in svg files?
body: <p>I am trying to save a python plot as an svg file:</p>
  
  <pre><code>import matplotlib as mpl
  mpl.use('svg')
  import matplotlib.pyplot as plt
  import numpy as np
  
  plt.figure()
  x = np.linspace(0,2*np.pi)
  y = np.sin(x)
  plt.plot(x, y)
  plt.xlabel('Phase $\phi$')
  plt.ylabel('Signal')
  plt.savefig('SineSignal.svg', format = 'svg')
  </code></pre>
  
  <p>Works so far.
  But once I open the file in Inkscape, I cannot edit the text anymore. Seems like python saved the text as a graphic instead as text. Because of this I am neither able to change font, fontsize etc. in Inkscape nor to search for text elements in the plots in the PDF file I create with latex. </p>
  
  <p>Another option is to save the plot as PGF (mpl.use('svg') has to be replaced with mpl.use('pgf') in this case):</p>
  
  <pre><code>plt.savefig('SineSignal.pgf')
  </code></pre>
  
  <p>This way I am still not able to edit font/fontsize, but at least I can search for textelements in the pdf.</p>
  
  <p>Any suggestions?
  Using TikZ in python is not an option because the features are quite limited and the plots would look different.</p>