Multiple Y Axis

Hi everybody. Question about multiple Y axes…

I’ve seen a few posts regarding using the trick of laying one axes over top of the other to simulate a second Y axis – as demonstrated in the matplotlib example file two_scales.py.

However, in the application I’m building, the user should be able to select points (“outliers”) for either axis. With the current approach, the user can’t select the bottom graph’s points (or pan or zoom it).

Is there a way to bring the bottom graph into “focus”?

Thanks in advance for any tips.

···

=====================================
Daniel McQuillen
Oakland, CA

Daniel McQuillen wrote:

I've seen a few posts regarding using the trick of laying one axes over top of the other to simulate a second Y axis -- as demonstrated in the matplotlib example file two_scales.py...

Is there a way to bring the bottom graph into "focus"?

I see that zooming the graph made by two_scales.py zooms the points and the right hand y axis but not the left hand one. Is this what you mean?

I made a patch on the sourceforge site that does what you need.

you can select which layer(s) you interact with (move/pan)

Daniel McQuillen wrote:

···

Hi everybody. Question about multiple Y axes…

I’ve seen a few posts regarding using the trick of laying one axes over
top of the other to simulate a second Y axis – as demonstrated in the
matplotlib example file two_scales.py.

However, in the application I’m building, the user should be able to
select points (“outliers”) for either axis. With the current approach,
the user can’t select the bottom graph’s points (or pan or zoom it).

Is there a way to bring the bottom graph into “focus”?

Thanks in advance for any tips.

=====================================

Daniel McQuillen

Oakland, CA