On Fri, Jul 25, 2008 at 5:32 PM, Paul Kienzle <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I commited a fixto the axis contains methods, and now have working scroll
> wheel zooming code. I still need to use transforms properly before it can
> go into matplotlib, so for now I provide it only for demonstration
> purposes.
I haven't tested this yet, but on a quick read through I notice.
try:
step = event.step
except:
if event.button == 'up':
step = 1
else:
step = -1
Just a reminder that blanket try/except clauses are forbidden in mpl,
so you can either do "except AttributeError" or use "if not
hasattr(event, 'step')"
JDH
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel