On Monday 20 August 2007 10:18:27 am Michael Droettboom wrote: > On a related note, there was a recent thread on matplotlib-users about > usetex being a global setting: > > http://www.mail-archive.com/[EMAIL PROTECTED]/msg04101 >.html > > I'm concerned about consistency and/or redundancy between this and the > new markup kwarg. I don't know whether or not "usetex" being > "all-or-nothing" is desirable. But we could meet in the middle by doing > one of the following: > > a) only send text to LaTeX for rendering when text.usetex=True and > markup="tex". (Which makes usetex=True behave a little more like > usetex=False).
This seems like a bad idea. If I want to use tex as my text layout engine, now I have two settings to keep track of. We'll get lots of posts asking why latex is not being used when usetex is True. > b) add another value to markup, to render text with LaTeX. (If we > do, I would suggest changing the kwarg to "text_renderer" and having the > values be "normal", "mathtext" and "latex" or something) This seems reasonable. Although, if we make it so latex can be used to layout some text but not others, I worry that we will get no end of posts complaining about how the latex fonts dont match the mathtext or normal fonts. > c) make markup="tex" be all-or-nothing as well (that is, keep the > rcParam, but drop the kwarg.) With this flag, you're basically saying > "I know how to deal with $'s". > > b) is probably the most flexible (maybe too flexible, as I can't see why > one would want to use all three types of rendering in the same plot). > a) and b) would break backward compatibility with 0.90.1, while c) would > not. > > Any thoughts? I think b) fits best. Maybe backward compatibility can be maintained. usetex would be deprecated, and would set the text_renderer rcParam to latex when True. Or does 0.90.1 already have the markup kwarg? Again, there must be a way. The new validation mechanism in rcParams (not traits, the stuff I did right before traits) could probably provide a route for transition without actually breaking anything. I am pretty busy this week at work, and will be on vacation for 11 days starting August 24, just letting you know. Darren ------------------------------------------------------------------------- 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