Re: [Matplotlib-users] Tex error in plot label

2015-07-30 Thread vijai
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.

Re: [Matplotlib-users] Tex error in plot label

2015-07-28 Thread Oscar Benjamin
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. $\tau does

Re: [Matplotlib-users] Tex error in plot label

2015-07-28 Thread Joao Quinta da Fonseca
That makes sense. Thank you. João On 28 Jul 2015, at 16:08, Oscar Benjamin oscar.j.benja...@gmail.com wrote: 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

Re: [Matplotlib-users] Tex error in plot label

2015-07-28 Thread Jens Nielsen
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