I have come across an odd bug in PolarAxes event handling.  If one creates a
polar axes, then attempts to do a zoom action (is this even allowed?), and
then attempts to do a pan (is this even allowed?), errors get thrown.
Digging deeper, I noticed that the error being thrown is from "drag_zoom",
which is odd because the current action should be drag_pan.  Note that this
bug only occurs if a zoom was attempted prior to a pan.  Tracing the code
execution, I can see that drag_pan does get called before drag_zoom, which
leads me to suspect that the callbacks were never disconnected.

I don't have enough experience in this area to get much further.  Can
anybody else figure out why the interactive panning and zooming are not
working for polar plots?  There does appear to be code for that purpose, but
nothing happens for either.  Maybe it is linked to this bug?  Maybe some
code point is being skipped that would connect and disconnect the proper
callbacks?  I am not sure what is going on here.  I have attached a really
simple script to create a polar plot for others to test this out.

Note: I am using GTKAgg backend.

Steps to reproduce:
1. Run script
2. Click on zoom button.
3. Click anywhere inside the polar plot (dragging is not needed).
4. Click on pan button
5. Click and drag inside the polar plot.

Ben Root

Attachment: polar_plot_zoomtest.py
Description: Binary data

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to