On 7/26/07, Darren Dale <[EMAIL PROTECTED]> wrote: > > where Math is a wrapper object that signals to "text" that its contents > > are to be passed to the mathtext interpreter. > > I would like to voice my opinion against this idea. I think the backward > imcompatibility will be rare, and does not justify the additionaly complexity > of the far more common need to interpret mathtext.
I'm on the fence as to how to handle this case. The majority of our users will think of $ as the US currency symbol, and will have never heard of TeX. Option 1 is to educate them, and require them to \$ quote that symbol. Option 2 is to enable a text property eg mathtext, and do text(x, y, 'what is the $\sin(x)$', mathtext=True) Option 3 is to try and be clever, and interpret an even number of unquoted dollar symbols as mathtext, or any string that has a quoted dollar sign symbol as mathtext, else assume plain text. Option 4 is to treat *all* strings as mathtext, but I think we would pay a pretty big performance hit to invoke the mathtext machinery for every piece of text. But it is an option. In option 4, of course, users would be required to quote all dollar signs, so it is related to option 1 but slightly different in how it treats strings with no dollar signs. I'm not too keen on the text(x, y, Math('string')) proposal, which is a little outside the normal matplotlib approach. Michael, do you have a preference or an alternate proposal? JDH ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel