Le Mardi 31 Octobre 2006 23:47, Robert Kern a écrit :
> [EMAIL PROTECTED] wrote:
> > I tried:
> >
> > label='$\textrm{test}_2$
> > xlabel(r label)
> > xlabel(r+label)
> >
> > etc but it not working (like I expected). So I would like to know if
> > there are a way to precise that the text is a raw string by another thing
> > that the r character just before the string. Perhaps that will be good to
> > have an option like raw=true or something similar?
>
> There is no such thing as a raw string *object*. There are only raw string
> *literals*. The r'' determines how the source code is parsed, not how the
> contents of the object is treated.
>
>    label = r'$\textrm{test}_2$'
>    xlabel(label)
>
> After the source code containing the string literal is parsed, the string
> is simply a string.

Thank you very much I didn't know this. That will be very helpful.

N.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to