Have u tried ?
plt.ylabel(r'$\alpha$')
--
View this message in context:
http://matplotlib.1069221.n5.nabble.com/Tex-error-in-plot-label-tp45964p45979.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
-
That makes sense. Thank you.
João
> On 28 Jul 2015, at 16:08, Oscar Benjamin wrote:
>
>
>
> On Tue, 28 Jul 2015 at 16:01 Joao Quinta da Fonseca
> wrote:
> I am trying to use LaTeX on the ylabel of a plot using:
>
> plt.ylabel("$\alpha$”)
>
> and I am seeing very inconsistent behaviour. If
On Tue, 28 Jul 2015 at 16:01 Joao Quinta da Fonseca <
joao.fons...@manchester.ac.uk> wrote:
> I am trying to use LaTeX on the ylabel of a plot using:
>
> plt.ylabel("$\alpha$”)
>
> and I am seeing very inconsistent behaviour. If I use $\alpha$ I get an
> error (see below), but \gamma is fine. $\ta
I think you either need to escape the \ as \\ or use a raw string .i.e do
r'$\alpha$' otherwise \a gets interpreted as control character.
try entering '\alpha' in a regular python prompt and you will se what
happens.
Best
Jens
tir. 28. jul. 2015 kl. 16.01 skrev Joao Quinta da Fonseca <
joao.fons
I am trying to use LaTeX on the ylabel of a plot using:
plt.ylabel("$\alpha$”)
and I am seeing very inconsistent behaviour. If I use $\alpha$ I get an error
(see below), but \gamma is fine. $\tau does not give an error but plots a
strange character.
Can you help? thanks
Joao
Using $\alpha$