So it turns out that
text.latex.preamble : '\usepackage{amsmath},\usepackage{amssymb}'
is not valid, but
text.latex.preamble : \usepackage{amsmath},\usepackage{amssymb}
is valid. Everything works fine now.
Regards,
-- Damon
--------------------------
Damon McDougall
Mathematics Institute
University of Warwick
Coventry
CV4 7AL
[email protected]
On 2 Aug 2010, at 17:42, Damon McDougall wrote:
> Actually I'm wrong, the error says 'Missing \begin{document}'. Sorry for the
> spam.
>
> Regards,
> -- Damon
>
> --------------------------
> Damon McDougall
> Mathematics Institute
> University of Warwick
> Coventry
> CV4 7AL
> [email protected]
>
>
>
> On 2 Aug 2010, at 17:41, Damon McDougall wrote:
>
>> After some playing I have discovered that putting maplotlib.rc('text.latex',
>> preamble='\usepackage{amsmath},\usepackage{amssymb}') fixes the issue of
>> text rendering. However, when putting this value in the
>> ~/.matplotlib/matplotlibrc file, I get the same error saying that \mathbb is
>> undefined. Any ideas?
>>
>> Regards,
>> -- Damon
>>
>> --------------------------
>> Damon McDougall
>> Mathematics Institute
>> University of Warwick
>> Coventry
>> CV4 7AL
>> [email protected]
>>
>>
>>
>> On 2 Aug 2010, at 16:48, Damon McDougall wrote:
>>
>>> Hi all,
>>>
>>> So I'm generating a figure for a paper and I'd like to be able to use
>>> something akin to ax.set_ylabel('$\mathbb{TEST}$')
>>>
>>> The weird thing is sometimes I get an error when running the figure
>>> generation script (attached) and sometimes I don't. I also can't reproduce
>>> when it does or doesn't give an error. In either case, the text doesn't
>>> render as blackboard bold text, it's just normal Computer Modern Roman text
>>> (see attached figure). Also see attached a python script that reproduces
>>> the figure.
>>>
>>> <asd.pdf>
>>>
>>> <script.py>
>>>
>>> <error.txt>
>>>
>>> Any help is greatly appreciated. Thank you.
>>>
>>> Regards,
>>> -- Damon
>>>
>>> --------------------------
>>> Damon McDougall
>>> Mathematics Institute
>>> University of Warwick
>>> Coventry
>>> CV4 7AL
>>> [email protected]
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> The Palm PDK Hot Apps Program offers developers who use the
>>> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
>>> of $1 Million in cash or HP Products. Visit us here for more details:
>>> http://p.sf.net/sfu/dev2dev-palm_______________________________________________
>>> Matplotlib-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users