Re: [Matplotlib-users] subclassing AutoDateFormatter correctly

2010-12-01 Thread C M
On Wed, Dec 1, 2010 at 12:28 AM, Ryan May rma...@gmail.com wrote: On Tue, Nov 30, 2010 at 7:00 PM, C M cmpyt...@gmail.com wrote: Thanks, Ryan. I've done that now. I use the OOP approach to matplotlib and embed it in wxPython, so my example uses that. I did not know how to apply an

Re: [Matplotlib-users] subclassing AutoDateFormatter correctly

2010-11-30 Thread C M
On Sun, Nov 28, 2010 at 8:52 PM, C M cmpyt...@gmail.com wrote: How can I correctly subclass AutoDateFormatter and use it in my code? What I am doing is copying the code from matplotlib's AutoDateFormatter and changing the strings for how the dates are represented and making that a class,

Re: [Matplotlib-users] subclassing AutoDateFormatter correctly

2010-11-30 Thread Ryan May
On Tue, Nov 30, 2010 at 10:44 AM, C M cmpyt...@gmail.com wrote: On Sun, Nov 28, 2010 at 8:52 PM, C M cmpyt...@gmail.com wrote: How can I correctly subclass AutoDateFormatter and use it in my code? What I am doing is copying the code from matplotlib's AutoDateFormatter and changing the

Re: [Matplotlib-users] subclassing AutoDateFormatter correctly

2010-11-30 Thread C M
On Tue, Nov 30, 2010 at 12:23 PM, Ryan May rma...@gmail.com wrote: On Tue, Nov 30, 2010 at 10:44 AM, C M cmpyt...@gmail.com wrote: On Sun, Nov 28, 2010 at 8:52 PM, C M cmpyt...@gmail.com wrote: How can I correctly subclass AutoDateFormatter and use it in my code? What I am doing is

Re: [Matplotlib-users] subclassing AutoDateFormatter correctly

2010-11-30 Thread Ryan May
On Tue, Nov 30, 2010 at 7:00 PM, C M cmpyt...@gmail.com wrote: Thanks, Ryan.  I've done that now.  I use the OOP approach to matplotlib and embed it in wxPython, so my example uses that.  I did not know how to apply an AutoDateFormatter to an axis if using pylab and figured the basics of what

[Matplotlib-users] subclassing AutoDateFormatter correctly

2010-11-28 Thread C M
How can I correctly subclass AutoDateFormatter and use it in my code? What I am doing is copying the code from matplotlib's AutoDateFormatter and changing the strings for how the dates are represented and making that a class, MyAutoDateFormatter. AutoDateFormatter expects a locator, and I think