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
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
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=
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
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