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.
- Paul
zoomwheel.py (4.1 KB)
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
···
On Fri, Jul 25, 2008 at 5:32 PM, Paul Kienzle <pkienzle@...537...> 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.