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
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
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(
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
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
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
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
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
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