On Thursday 08 May 2008 5:13:20 am Yves Revaz wrote:
> Dear List,
>
> How is it possible to write legend text with LateX fonts ?
> Even with
> rc('text', usetex=True)
> the legend created with the command "legend" do not appear with LateX
> fonts.
>
> I try something like :
>
> pt.legend(('$\rm{total baryons}$'))
>
> but the \rm is badly interpreted :-( .

Does this work better?

pt.legend((r'$\rm{total baryons}$'))

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to