Nicolas Chopin writes:
> funny \gamma works, though.
That's because \g has no special meaning, while e.g. \b means backspace:
http://docs.python.org/reference/lexical_analysis.html#string-literals
> On a related note, usetex=True is fancy, but produce much bigger eps
> files for me, so I stick
thanks a lot! I did not know about raw strings, sorry, even Python has
its black corners, I guess.
funny \gamma works, though.
On a related note, usetex=True is fancy, but produce much bigger eps
files for me, so I stick with the standard mathtex rendering.
Thanks again
Nicolas
2009/9/4 Nicolas C
In [162]: print "$\beta$"
eta$
In [163]: print r"$\beta$"
$\beta$
use the raw sting for math expression.
Regards,
-JJ
On Fri, Sep 4, 2009 at 12:06 PM, Nicolas
Chopin wrote:
> Hi list,
> when I do:
> hist(randn(100)); xlabel('$\gamma$')
> things work as expected.
> However, if I try:
> hist(ra
Hi list,
when I do:
hist(randn(100)); xlabel('$\gamma$')
things work as expected.
However, if I try:
hist(randn(100)); xlabel('$\beta$')
then either I get an error, or I get the label "eta" under the plot.
Other letters seem to trigger this: tau, alpha, rho, maybe others.
This problems wether tex