From: Sebastian B. <web...@th...> - 2009-08-12 11:47:21
|
Darren Dale wrote: >> the example >> >> from matplotlib.pyplot import * >> text(0.5, 0.5, r'a \\ b') >> savefig('test.eps') >> >> runs without error here -- and latex is calling pdftex: > > ... cup of coffee. ... the example was not fair though as it wasn't using latex... this one is now: from matplotlib import rcParams params = {'backend': 'ps', 'text.usetex': True, 'ps.usedistiller': 'xpdf', } rcParams.update(params) from matplotlib.pyplot import * text(0.5, 0.5, r'a \newline{} b') savefig('test.eps') it does not crash (the version with '\\' does) but does not produce a line break, either... best, sebastian. |