Re: [Matplotlib-users] Using dates in a simple plot with wxPython doesn't work

2015-07-28 Thread Brendan Barnwell
On 2015-07-28 10:31, (by way of c.bu...@posteo.jp) wrote: > I try to use a dates on the x-aches. With pure Python3 code it works > fine. BUt when I try to use this inside wxPython application on a > FigureCanvas it doesn't work. And I don't understand the difference > here. > > This is the error >

[Matplotlib-users] Using dates in a simple plot with wxPython doesn't work

2015-07-28 Thread c.buhtz
I try to use a dates on the x-aches. With pure Python3 code it works fine. BUt when I try to use this inside wxPython application on a FigureCanvas it doesn't work. And I don't understand the difference here. This is the error [err] plot.plot([datetime.date(2015, 1, 7), TypeError: descriptor '

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 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

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. $\ta

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 < joao.fons

[Matplotlib-users] Tex error in plot label

2015-07-28 Thread Joao Quinta da Fonseca
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$