I think I've found a bug in matplotlib. I use Sage, which is based on
Python and included matplotlib.
sage: import pylab
sage: pylab.text(0.2, 0.2, r"$\left(2a = b\right)$") # note \left(
and \right) work
sage: pylab.text(0.2, 0.5, r"$(2 \, a = b)$") # note \, works
sage: pylab.savefig('
trac/ticket/10159> for our fix: we
replace those lines by
try:
os.mkdir(texcache)
except OSError, e:
assert e.errno==errno.EEXIST, 'Cannot create %s.' % texcache
(and also add "import errno" at the beginning of the file).
I'd be happy to hear a