Tex-style factorial ! in legend

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?

Many thanks,

Andreas

Looks fine to me. Do you have rcParams['text.usetex']=True?

···

On Tue, Sep 25, 2012 at 11:10 AM, andreasl <andreasl@...2880...> 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?

--
Damon McDougall
http://www.damon-is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom

Thanks Damon. No, I was using matplotlib’s own rather than . If I do set to ,
trying to plot anything results in errors, the output including:
This on the matplotlib webpage (I am using
Ubuntu-derived Mint). I’m not keen to install as
part of Mint’s space-chomping 485MB package. May figure out how to install it individually; if anyone
has experience with this, please shout. Cheers.

···

On 25/09/12 11:44, Damon McDougall
wrote:

On Tue, Sep 25, 2012 at 11:10 AM, andreasl 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?

mathtex direct
LaTeX support
usetex``True
`

  ! LaTeX Error: File `type1cm.sty' not found.

`

issue
is mentioned
type1cm``texlive-latex-extra
<andreasl@…2880…>

This is working for me, even with text.usetex set to "False". What version of matplotlib are you using? Do you have anything set in your matplotlibrc file?

Mike

···

On 09/25/2012 06:10 AM, andreasl 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 <http://matplotlib.org/users/mathtext.html> nor elsewhere. Any ideas?

Many thanks,

Andreas

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