title: Can´t save matplotlib figure to .eps in Windows while using text.usetex : True
body: <p>When I run the following code: <a href="http://dpaste.com/0210P09" rel="nofollow">http://dpaste.com/0210P09</a> everything works fine on my Linux distro.</p>
  
  <p>However, in Windows7 (64bit) I cannot successfully save it in <code>eps</code> or <code>svg</code>.</p>
  
  <p>This is the error that I get:</p>
  
  <pre><code>Traceback (most recent call last):
  
    File "&lt;ipython-input-1-b8da411d11b0&gt;", line 1, in &lt;module&gt;
      runfile('C:/Users/12151056/Documents/Python Scripts/MyPython/1Tplot_2.py', wdir='C:/Users/12151056/Documents/Python Scripts/MyPython')
  
    File "C:\Users\12151056\AppData\Local\Continuum\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 685, in runfile
      execfile(filename, namespace)
  
    File "C:\Users\12151056\AppData\Local\Continuum\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 85, in execfile
      exec(compile(open(filename, 'rb').read(), filename, 'exec'), namespace)
  
    File "C:/Users/12151056/Documents/Python Scripts/MyPython/1Tplot_2.py", line 67, in &lt;module&gt;
      plt.savefig('excel-6.eps')
  
    File "C:\Users\12151056\AppData\Local\Continuum\Anaconda3\lib\site-packages\matplotlib\pyplot.py", line 577, in savefig
      res = fig.savefig(*args, **kwargs)
  
    File "C:\Users\12151056\AppData\Local\Continuum\Anaconda3\lib\site-packages\matplotlib\figure.py", line 1476, in savefig
      self.canvas.print_figure(*args, **kwargs)
  
    File "C:\Users\12151056\AppData\Local\Continuum\Anaconda3\lib\site-packages\matplotlib\backend_bases.py", line 2211, in print_figure
      **kwargs)
  
    File "C:\Users\12151056\AppData\Local\Continuum\Anaconda3\lib\site-packages\matplotlib\backends\backend_ps.py", line 1009, in print_eps
      return self._print_ps(outfile, 'eps', *args, **kwargs)
  
    File "C:\Users\12151056\AppData\Local\Continuum\Anaconda3\lib\site-packages\matplotlib\backends\backend_ps.py", line 1033, in _print_ps
      **kwargs)
  
    File "C:\Users\12151056\AppData\Local\Continuum\Anaconda3\lib\site-packages\matplotlib\backends\backend_ps.py", line 1398, in _print_figure_tex
      rotated=psfrag_rotated)
  
    File "C:\Users\12151056\AppData\Local\Continuum\Anaconda3\lib\site-packages\matplotlib\backends\backend_ps.py", line 1556, in gs_distill
      your image.\nHere is the full report generated by ghostscript:\n\n' + fh.read())
  
  TypeError: Can't convert 'bytes' object to str implicitly
  </code></pre>
  
  <p>If i use <code>text.usetex : False</code> I have no problem at all.</p>
  
  <p>I have livetex full and Ghostscript installed.</p>
  
  <p>Any suggestions to try and solve it?</p>