[Matplotlib-users] EPS with TeX

2009-08-12 Thread D2Hitman
Hi, I am trying to use a text label with a new line in the middle and then save the figure to .eps text(0.5, 0.5, r'a \\ b') savefig('test.eps') This results in: RuntimeError: LaTeX was not able to process your file: Here is the full report generated by LaTeX: This is pdfTeX, Version

Re: [Matplotlib-users] EPS with TeX

2009-08-12 Thread Darren Dale
On Wed, Aug 12, 2009 at 7:13 AM, D2Hitmanj.m.gir...@warwick.ac.uk wrote: Hi, I am trying to use a text label with a new line in the middle and then save the figure to .eps text(0.5, 0.5, r'a \\ b') savefig('test.eps') This results in: RuntimeError: LaTeX was not able to process your

Re: [Matplotlib-users] EPS with TeX

2009-08-12 Thread Sebastian Busch
Darren Dale wrote: On Wed, Aug 12, 2009 at 7:13 AM, D2Hitmanj.m.gir...@warwick.ac.uk wrote: Is it a problem that it is using pdftex instead of pslatex? Yes. i don't think so. the example from matplotlib.pyplot import * text(0.5, 0.5, r'a \\ b') savefig('test.eps') runs without error here

Re: [Matplotlib-users] EPS with TeX

2009-08-12 Thread Darren Dale
On Wed, Aug 12, 2009 at 7:32 AM, Sebastian Buschwebmas...@thamnos.de wrote: Darren Dale wrote: On Wed, Aug 12, 2009 at 7:13 AM, D2Hitmanj.m.gir...@warwick.ac.uk wrote: Is it a problem that it is using pdftex instead of pslatex? Yes. i don't think so. the example from matplotlib.pyplot

Re: [Matplotlib-users] EPS with TeX

2009-08-12 Thread Sebastian Busch
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

Re: [Matplotlib-users] EPS with TeX

2009-08-12 Thread Sebastian Busch
finally... Sebastian Busch wrote: ... it does not crash (the version with '\\' does) but does not produce a line break, either... text(0.5, 0.5, 'a \n b') works. signature.asc Description: OpenPGP digital signature

Re: [Matplotlib-users] EPS with TeX

2009-08-12 Thread D2Hitman
Darren Dale-3 wrote: Is it a problem that it is using pdftex instead of pslatex? Yes. I am trying a few things in matplotlibrc, but cannot change from pdftex... Is there something obvious i am missing? If so what? Cheers. -- View this message in context: