|
From: andreasl <and...@la...> - 2012-09-25 12:51:03
|
On 25/09/12 11:44, Damon McDougall wrote: > On Tue, Sep 25, 2012 at 11:10 AM, andreasl <and...@la...> wrote: >> Hello, >> >> When I use something along the lines of >> >> legend( (r'$0.5^x/x!$', r'$1^x/x!$') ) >> >> for some reason omegas are drawn instead of the ! sign. I can't find an >> alternative here nor elsewhere. Any ideas? >> > Looks fine to me. Do you have rcParams['text.usetex']=True? > Thanks Damon. No, I was using matplotlib's own mathtex <http://matplotlib.org/users/mathtext.html> rather than direct LaTeX support <http://matplotlib.org/users/usetex.html>. If I do set usetex to True, trying to plot anything results in errors, the output including: ! LaTeX Error: File `type1cm.sty' not found. This issue is mentioned <http://matplotlib.org/users/usetex.html#possible-hangups> on the matplotlib webpage (I am using Ubuntu-derived Mint). I'm not keen to install type1cm as part of Mint's space-chomping 485MB texlive-latex-extra package. May figure out how to install it individually; if anyone has experience with this, please shout. Cheers. |