Dear list,
activating latex rendering by change of the matplotlibrc variable
'text.usetex' to true gives me the following error. I am using
matplotlib 0.84 using python 2.4.1 on linux. Does anyknow know how to
solve this? This problem doesn't appear for the simple plot command:
from matplotlib.pylab import *
title(r'$\rho$')
plot([1,2,3,4])
show()
But when I plot multiple lines using the following approach:
from matplotlib import pylab
def plotroc(x,y, label=None):
pylab.figure(0)
pylab.plot(x,y,label=label)
pylab.xlabel('1-specificity')
pylab.ylabel('sensitivity')
pylab.axis(xmin=0, xmax=1, ymin=0, ymax=1)
plotroc([1,2,3,4],[4,4,2,1],label='a')
plotroc([1,2,3,4],[4,3,2,1],label='b')
pylab.savefig('test.eps')
matplotlib comes with the following message:
exceptions.OSError Traceback
(most recent call last)
/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py in expose_event(self, widget, event)
316 x, y, w, h = self.allocation
317 self._pixmap_prepare (w, h)
--> 318 self._render_figure(self._pixmap, w, h)
319 self._need_redraw = False
320
...
/usr/local/lib/python2.4/site-packages/matplotlib/texmanager.py
in make_dvi(self, tex, force)
125 # dir and move it if necessary and then cleanup
126 if os.path.exists(dvibase):
--> 127 os.rename(dvibase, dvifile)
128 for fname in glob.glob(prefix+'*'):
129 os.remove(fname)
OSError: [Errno 18] Invalid cross-device link
Thanks in advance,
Joost