Re: [Matplotlib-users] rectangular bracket in mathtext

2008-01-10 Thread Michael Droettboom
You're right. It's a bug. The parser (when it was re-written) was changed to not accept '[' as a literal symbol, since it is meaningful in certain situations. This turned out to be overly cautious. This is fixed in svn r4854. Manuel Metz wrote: > Michael Droettboom wrote: >> You need to esc

Re: [Matplotlib-users] rectangular bracket in mathtext

2008-01-10 Thread Manuel Metz
Michael Droettboom wrote: > You need to escape the [: > >mpl_pp.xlabel(r"$\[$") > > [] and {} have special meanings in math syntax, so to use them > "literally", they need to be escaped. Really? Note that Matthias had text.usetex=False. I tried various configurations: text.usetex=True

Re: [Matplotlib-users] rectangular bracket in mathtext

2008-01-10 Thread Michael Droettboom
You need to escape the [: mpl_pp.xlabel(r"$\[$") [] and {} have special meanings in math syntax, so to use them "literally", they need to be escaped. Cheers, Mike Matthias Michler wrote: > Hello list, > > the little example below leads to an error on my system (output is attached). > I use

[Matplotlib-users] rectangular bracket in mathtext

2008-01-10 Thread Matthias Michler
Hello list, the little example below leads to an error on my system (output is attached). I used this some time ago and it worked. Now I'm using the release 0.91.2. Is there a reason to use rectangular brackets not in mathtext? (same problem occur with '{' for me.) best regards and thanks in adva