Re: [matplotlib-devel] Different behaviour of mathtext and LaTeX rendering

2008-12-15 Thread Michael Droettboom
Darren Dale wrote: > > I think it would be worth stating in the docs that # $ % & ~ _ ^ \ { } > \( \) \[ \] have special meaning in latex but not in regular mpl text, > so buyer beware. It might be nice if mpl regular text rendered the > escaped version of all these characters the same way latex

Re: [matplotlib-devel] Different behaviour of mathtext and LaTeX rendering

2008-12-12 Thread Darren Dale
On Fri, Dec 12, 2008 at 3:55 PM, Michael Droettboom wrote: > > > Darren Dale wrote: > >> >> And I forgot that because mathtext used to be an all-or-nothing >> enterprise, there was no reason to escape the $ in regular text. Once you >> made it possible to embed mathtext in a regular string, I th

Re: [matplotlib-devel] Different behaviour of mathtext and LaTeX rendering

2008-12-12 Thread Michael Droettboom
Darren Dale wrote: > > And I forgot that because mathtext used to be an all-or-nothing > enterprise, there was no reason to escape the $ in regular text. Once > you made it possible to embed mathtext in a regular string, I think it > would have been better in the long run to require \$, but th

Re: [matplotlib-devel] Different behaviour of mathtext and LaTeX rendering

2008-12-12 Thread John Hunter
On Fri, Dec 12, 2008 at 2:41 PM, Darren Dale wrote: > What I would prefer is to raise a deprecation warning when an odd number of > dollar signs are encountered, giving people time to learn to escape their $ > and modify their code. I wonder how disruptive this would be to people using > mpl for

Re: [matplotlib-devel] Different behaviour of mathtext and LaTeX rendering

2008-12-12 Thread Darren Dale
On Fri, Dec 12, 2008 at 2:22 PM, Michael Droettboom wrote: > Darren Dale wrote: > >> On Fri, Dec 12, 2008 at 1:06 PM, Michael Droettboom > md...@stsci.edu>> wrote: >> >>Darren Dale wrote: >> >>On Fri, Dec 12, 2008 at 9:46 AM, Michael Droettboom >>mailto:md...@stsci.edu> >>

Re: [matplotlib-devel] Different behaviour of mathtext and LaTeX rendering

2008-12-12 Thread Michael Droettboom
Darren Dale wrote: > On Fri, Dec 12, 2008 at 1:06 PM, Michael Droettboom > wrote: > > Darren Dale wrote: > > On Fri, Dec 12, 2008 at 9:46 AM, Michael Droettboom > mailto:md...@stsci.edu> > >> wrote:

Re: [matplotlib-devel] Different behaviour of mathtext and LaTeX rendering

2008-12-12 Thread Darren Dale
On Fri, Dec 12, 2008 at 1:06 PM, Michael Droettboom wrote: > Darren Dale wrote: > > On Fri, Dec 12, 2008 at 9:46 AM, Michael Droettboom > md...@stsci.edu>> wrote: >> >>Manuel Metz wrote: >>> Michael Droettboom wrote: >>> >>>> There was a discussion on this list around a year ago

Re: [matplotlib-devel] Different behaviour of mathtext and LaTeX rendering

2008-12-12 Thread Michael Droettboom
Darren Dale wrote: > On Fri, Dec 12, 2008 at 9:46 AM, Michael Droettboom > wrote: > > Manuel Metz wrote: > > Michael Droettboom wrote: > > > >> There was a discussion on this list around a year ago about > this. The > >> concern was that not renderi

Re: [matplotlib-devel] Different behaviour of mathtext and LaTeX rendering

2008-12-12 Thread Darren Dale
On Fri, Dec 12, 2008 at 9:46 AM, Michael Droettboom wrote: > Manuel Metz wrote: > > Michael Droettboom wrote: > > > >> There was a discussion on this list around a year ago about this. The > >> concern was that not rendering $ as $ would break (matplotlib) backward > >> compatibility with script

Re: [matplotlib-devel] Different behaviour of mathtext and LaTeX rendering

2008-12-12 Thread Manuel Metz
Michael Droettboom wrote: > Manuel Metz wrote: >> Michael Droettboom wrote: >> >>> There was a discussion on this list around a year ago about this. The >>> concern was that not rendering $ as $ would break (matplotlib) backward >>> compatibility with scripts that don't care about math at all bu

Re: [matplotlib-devel] Different behaviour of mathtext and LaTeX rendering

2008-12-12 Thread Michael Droettboom
Manuel Metz wrote: > Michael Droettboom wrote: > >> There was a discussion on this list around a year ago about this. The >> concern was that not rendering $ as $ would break (matplotlib) backward >> compatibility with scripts that don't care about math at all but use a >> lot of dollar signs (

Re: [matplotlib-devel] Different behaviour of mathtext and LaTeX rendering

2008-12-12 Thread Manuel Metz
Michael Droettboom wrote: > There was a discussion on this list around a year ago about this. The > concern was that not rendering $ as $ would break (matplotlib) backward > compatibility with scripts that don't care about math at all but use a > lot of dollar signs (e.g. financial plots). This i

Re: [matplotlib-devel] Different behaviour of mathtext and LaTeX rendering

2008-12-12 Thread Michael Droettboom
There was a discussion on this list around a year ago about this. The concern was that not rendering $ as $ would break (matplotlib) backward compatibility with scripts that don't care about math at all but use a lot of dollar signs (e.g. financial plots). This is one of the few places where

[matplotlib-devel] Different behaviour of mathtext and LaTeX rendering

2008-12-12 Thread Manuel Metz
I just noted that mathtext and LaTeX rendering behave differently when using a single "$" character in a text string. This happened to me when looking at the dollar_ticks example from the docs because I use LaTeX rendering by default. The problem is here: formatter = ticker.FormatStrFormatte