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 s
[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 str
Le Mardi 31 Octobre 2006 23:14, Eric Firing a écrit :
> [EMAIL PROTECTED] wrote:
> > Hi,
> >
> > I have different questions to use tex with matplotlib.
> >
> > The first one:
> >
> > If I'm doing:
> >
> > rc('text', usetex=True)
> > xlabel('$\textrm{toto}$') # bad
> > xlabel(r'$\textrm{toto}$') #
[EMAIL PROTECTED] wrote:
> Hi,
>
> I have different questions to use tex with matplotlib.
>
> The first one:
>
> If I'm doing:
>
> rc('text', usetex=True)
> xlabel('$\textrm{toto}$') # bad
> xlabel(r'$\textrm{toto}$') # ok
>
> The results are not the same and I don't understand why.
>
> and
Hi,
I have different questions to use tex with matplotlib.
The first one:
If I'm doing:
rc('text', usetex=True)
xlabel('$\textrm{toto}$') # bad
xlabel(r'$\textrm{toto}$') # ok
The results are not the same and I don't understand why.
and for:
xlabel('$\textit{toto}$') #bad
xlabel(r'$\textit