On Tue, Aug 5, 2008 at 6:30 PM, Darren Dale <[EMAIL PROTECTED]> wrote:

> I've been wanting a physical quantities package based on numpy for quite a
> while. Over the weekend I started one, pulling code from Enthoughts units
> package and Charles Doutriaux's python wrappers of udunits (which appears to
> work on windows).

Hey Darren,

You may want to take a look at the examples/units/basic_units.py
module which is a poor-man's unit implementation.  As a units package,
it's mostly worthless, and is used primarily for testing.  But it will
show you how to connect to the mpl unit support to make your unit
arrays work with mpl (which can be done outside of mpl as in the
basic_units module or inside as in the dates support in the dates
module) usin the units registry.  Of course, the support for custom
types is incomplete and limited to a few functions (notably plot), and
I have been promising to clarify the units API and requirements, but
in the meantime you might want to experiment with it to see how the
existing framework works with your package.

In terms of clarifying the units requirements, I have been thinking
about it a fair amount and I think this time has been fruitful, but I
haven't committed anything to paper yet.

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

Reply via email to