I have created a runnable sample app that demonstrates the problem (mentioned also in another thread) in the subject line. The sample is:
mpl 1.0 embedded in wxPython using wxAgg backend.
using plot() for simplicity, but see same issue if it is plot_date(). (I do date plotting).
using twinx to have a 2nd axis (in the problematic case).
trying to have point picking on both axes.
You can demonstrate the problem by first running the app and clicking on one red marker and then one blue marker. The message dialog will, each time, indicate the line/pos you picked, and it will work for both the red and blue markers.
But then if you comment out line 52 and comment in line 56, thereby adding a second axis, you will find you can only pick the red markers (which are on the first axis).
This problem did not occur in my previous (0.98.5.2) version of matplotlib.
In addition, in my app, I also have a legend, and–only if I have a 2nd axis–I cannot pick that, either. (I kept it out of this sample to keep things simpler).
Thank you for any help or suggestions to get this to work.
2nd_axis_picking_problem.py (4.06 KB)