Re: [Matplotlib-users] Problem with importing LaTeX package amsmath and $\text{}$

2013-04-05 Thread Pawel Chojnacki
Thank you, it works flawlessly now :) 2013/3/31 Juergen Hasch > Am 31.03.2013 08:50, schrieb Pawel Chojnacki: > > Thank you very much - hovewer, your solution isn't enough. Adding your >> lines generate: >> >> > The problem is this: > > > RuntimeError: LaTeX was not able to process the follow

Re: [Matplotlib-users] Problem with importing LaTeX package amsmath and $\text{}$

2013-03-31 Thread Juergen Hasch
Am 31.03.2013 08:50, schrieb Pawel Chojnacki: > Thank you very much - hovewer, your solution isn't enough. Adding your lines > generate: > The problem is this: > RuntimeError: LaTeX was not able to process the following string: > u'' > Here is the full report generated by LaTeX: > Latex doesn't

Re: [Matplotlib-users] Problem with importing LaTeX package amsmath and $\text{}$

2013-03-30 Thread Pawel Chojnacki
Thank you very much - hovewer, your solution isn't enough. Adding your lines generate: ['\\usepackage{amsmath}', '\\usepackage[T1]{fontenc}'] Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1437, in __call__ return self.func(

Re: [Matplotlib-users] Problem with importing LaTeX package amsmath and $\text{}$

2013-03-30 Thread Juergen Hasch
I tested it under Linux now, and I see your problem. The latex files don't compile cleanly, this is why you get the error. You can find the .tex files under ~./matplotlib/tex.cache It looks like you have a problem with the font encoding when using unicode characters. This works for me under Lin

Re: [Matplotlib-users] Problem with importing LaTeX package amsmath and $\text{}$

2013-03-30 Thread Pawel Chojnacki
2013/3/30 Juergen Hasch > Am 30.03.2013 16:29, schrieb Pawel Chojnacki: > > Please pardon me, but what object is math.usetex attribute of? I can't > find it in the documentation. > > > > http://matplotlib.org/users/usetex.html Mentions only text.usetex. > > > > > > You need to set > mpl.r

Re: [Matplotlib-users] Problem with importing LaTeX package amsmath and $\text{}$

2013-03-30 Thread Juergen Hasch
Am 30.03.2013 16:29, schrieb Pawel Chojnacki: > Please pardon me, but what object is math.usetex attribute of? I can't find > it in the documentation. > > http://matplotlib.org/users/usetex.html Mentions only text.usetex. > > You need to set mpl.rcParams['text.usetex'] = True For text yo

Re: [Matplotlib-users] Problem with importing LaTeX package amsmath and $\text{}$

2013-03-30 Thread Pawel Chojnacki
Please pardon me, but what object is math.usetex attribute of? I can't find it in the documentation. http://matplotlib.org/users/usetex.html Mentions only text.usetex. 2013/3/30 Phil Elson > Doesn't look like you're using math.usetex & therefore are not actually > using latex, but mpl's stripp

Re: [Matplotlib-users] Problem with importing LaTeX package amsmath and $\text{}$

2013-03-30 Thread Phil Elson
Doesn't look like you're using math.usetex & therefore are not actually using latex, but mpl's stripped down tex implementation. Try setting usetex to True, or alternatively I think you could use \mathrm instead of \text to get non mathematical text. HTH On 30 March 2013 11:43, Pawel Chojnacki

[Matplotlib-users] Problem with importing LaTeX package amsmath and $\text{}$

2013-03-30 Thread Pawel Chojnacki
Hello, I've been having some troubles with LaTeX in matplotlib. My example script: #!/usr/bin/env python2 #-*- coding: utf-8 -*- __author__ = 'Pawel Chojnacki' __copyright__ ='Copyleft 2013 Pawel Chojnacki' __version__ = '1.0' __date__ = '29-03-2013' __license__ = 'GPLv3' import numpy as np imp