On Mon, Jul 21, 2008 at 5:25 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > I'll second being confused at times. In the transformation conversion, it > was something I didn't know too much about up front, so it's quite possible > that I broke some things in that regard. (I know of some already, but those > were fixed shortly after things were merged into the trunk around 0.98.0). > All that is to say that you may want to cross-reference against 0.91.x if > things look fishy. But I think you're right, we need some sort of "best > practices" guidance for supporting units, and then hopefully just track down > all the places where "such-and-such" should be happening and isn't.
I'll work on putting together a document for the developer's guide -- how to support units in a plotting function and artist. Supporting the units interface everywhere would definitely add to the memory footprint of mpl and would slow it down, in addition to increasing the coding burden. On the other hand, they are quite useful in some cases, most notably for me working with native datetimes and hopefully down the road a numpy datetime extension. Once I get the guide written and provide some clarity on the interface, we can decide in which functions it makes the most sense from a performance usability perspective and clean those first. Perhaps there are additional abstractions that can ease the coding burden, eg encapsulating all the mask/unit/what-have-you logic into a single entity such as a location array which supports a minimum set of operations. JDH JDH ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel