[Matplotlib-devel] Units discussion...

Jody Klymak jklymak at uvic.ca
Thu Feb 8 19:33:19 EST 2018



> On 8 Feb 2018, at 15:18, Drain, Theodore R (392P) <theodore.r.drain at jpl.nasa.gov> wrote:
> 
> On 8 February 2018 at 21:47, Drain, Theodore R (392P) <theodore.r.drain at jpl.nasa.gov <mailto:theodore.r.drain at jpl.nasa.gov><mailto:theodore.r.drain at jpl.nasa.gov <mailto:theodore.r.drain at jpl.nasa.gov>>> wrote:
> FYI for anyone interested - we already submitted (around the time of the first unit submit code in 2009) a mock of up our unit and time classes, with converters and tickers which is located in matplotlib/testing/jpl_units/.  It doesn't appear to be used in any tests anymore but it's there if anyone wants to look at it and was used in the original unit API testing.


Aha! `jpl_units` *is* used for a few tests in `test_axes.py` and `test_dates.py`, and `test_patches.py`

And those tests behave in what I’d say is a reasonable manner.  So maybe step 1 of coming up with a decent toy units system is accomplished.  

Steps 2 and 3 might be to add some more tests and some documentation/tutorial using the toy unit system.  I’m happy to give that a shot in the next few weeks.  Then we can move on to fixing the methods that don’t play well w/ units.  

Cheers,   Jody






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20180208/7c812aed/attachment.html>


More information about the Matplotlib-devel mailing list