Re: [matplotlib-devel] empty date formatter unit tests

2009-09-21 Thread Drain, Theodore R (343P)
c: Andrew Straw; matplotlib development list > Subject: Re: [matplotlib-devel] empty date formatter unit tests > > On Sun, Sep 20, 2009 at 6:50 PM, Drain, Theodore R (343P) > wrote: > > > I've run into this problem quite a few times and I'd love to figure > out some

Re: [matplotlib-devel] empty date formatter unit tests

2009-09-21 Thread John Hunter
On Sun, Sep 20, 2009 at 9:35 PM, John Hunter wrote: > where myInstance is an object of the type you expect to pass in.  As > long as you have registered a converter from type(myInstance) -> > ConversionInterface, you can now specify the default limits through > the ConversionInterface.default_lim

Re: [matplotlib-devel] empty date formatter unit tests

2009-09-20 Thread John Hunter
On Sun, Sep 20, 2009 at 6:50 PM, Drain, Theodore R (343P) wrote: > I've run into this problem quite a few times and I'd love to figure out some > way to fix it.  As an example, here's the kind of scenario this occurs in: > > I embed MPL in a few different GUI's that plot data either in real-time

Re: [matplotlib-devel] empty date formatter unit tests

2009-09-20 Thread Drain, Theodore R (343P)
> -Original Message- > From: John Hunter [mailto:jdh2...@gmail.com] > Sent: Sunday, September 20, 2009 3:26 PM > To: Andrew Straw; matplotlib development list > Subject: [matplotlib-devel] empty date formatter unit tests > > I spent a long time working on > > >

[matplotlib-devel] empty date formatter unit tests

2009-09-20 Thread John Hunter
I spent a long time working on https://sourceforge.net/tracker/index.php?func=detail&aid=2861426&group_id=80706&atid=560720 and the associated unit test. I learned a lot and the unit tests really helped. First, I decided that if someone sets the formatter or locator to be a DateFormatter or