Re: [Matplotlib-users] how do I get my axis

2008-10-13 Thread Mathew Yeates
The reason it wasn't working is that my function "foo" didn't have the right signature.fmt_xdata takes 1 argument. I have no idea why I didn't see an exception displayed. It's working now that I have def foo(x) pass Mathew John Hunter wrote: > On Mon, Oct 13, 2008 at 2:27 PM, Mathew Yeates <[E

Re: [Matplotlib-users] how do I get my axis

2008-10-13 Thread John Hunter
On Mon, Oct 13, 2008 at 2:27 PM, Mathew Yeates <[EMAIL PROTECTED]> wrote: > Angus pointed out that I need to do > res.fmt_xdata=foo > Duh. I was evaluating foo. > > But this still doesn't work! > The default formatting operation is still called. This is the correct usage -- so if it is not working

Re: [Matplotlib-users] how do I get my axis

2008-10-13 Thread Mathew Yeates
Angus pointed out that I need to do res.fmt_xdata=foo Duh. I was evaluating foo. But this still doesn't work! The default formatting operation is still called. Mathew Mathew Yeates wrote: > Thanks Angus. I tried this out ... it works once and only once! > BTW, The correct thing to do is > res=

Re: [Matplotlib-users] how do I get my axis

2008-10-13 Thread Mathew Yeates
Thanks Angus. I tried this out ... it works once and only once! BTW, The correct thing to do is res=fig.gca() res.fmt_xdata=foo() #instead of format_xdata res.fmt_ydata=foo() although, like I said, it only first for the first event. Somehow res.fmt_xdata is getting set back to None Mathew Ang

Re: [Matplotlib-users] how do I get my axis

2008-10-13 Thread Angus McMorland
Hi Mathew, 2008/10/13 Mathew Yeates <[EMAIL PROTECTED]> > Okay, I've gotten this far. I have a Figure and I think I can change the > formatting of the values displayed in the toolbar by setting taking the > X axis and setting the function > format_xdata > to something of my own (something that co