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 pyt...@elbonia.de 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

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

2013-03-31 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

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 like

[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

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

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 you