On 06/09/2012 14:49, Benjamin Root
wrote:
I found the solution. My LaTeX file uses the package amsmath, which also loads amstext. And that is invoked when using \text{} or \textnormal{} inside a formula. So the solution in matplotlib is to add the following to the preamble: 'text.latex.preamble': [r"\usepackage{upgreek}", r"\usepackage[nice]{units}", r"\usepackage{amstext}" ],I was using matplotlib 1.1, now updated to 1.1.1, but that did not affect it. Also, I am not using the built-in LaTeX typesetting. |
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users