I have a plot which uses both the left and right y axes. See
attached. Note that the feedback in the lower right-hand corner
displays the value on the right y axis (the blue plot). That's not a
very interesting value though. How can I control which value is
displayed as I move the cursor around the graph? Is it something
control interactively with a modifier key? I tried a few, but saw no
change. I'm currently using matplotlib v 1.1.0 (alas, something which
is also out of my control).
Thanks,
Skip

Skip,
I assume that you are using a twinx call to get the second y axis. I think that this question has come up before, and I think the solution was to switch which data are put on the second set of axes. (Of course to keep the same visual layout you would have to play with the y axis spine locations.)
Separately, if your blue data are so quantized, you might use the blue data to choose a color for an axvspan (or axhspan, I forget which is which) to indicate how certain regions of time have different values of blue data. Then you would only need one set of axes, and your x,y labels would indicate what you want.
-Sterling
···
On Sep 19, 2013, at 7:46AM, Skip Montanaro wrote:
I have a plot which uses both the left and right y axes. See
attached. Note that the feedback in the lower right-hand corner
displays the value on the right y axis (the blue plot). That's not a
very interesting value though. How can I control which value is
displayed as I move the cursor around the graph? Is it something
control interactively with a modifier key? I tried a few, but saw no
change. I'm currently using matplotlib v 1.1.0 (alas, something which
is also out of my control).
Thanks,
Skip
<axes.png>------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
I assume that you are using a twinx call to get the second y axis. I think that this question has come up before, and I think the solution was to switch which data are put on the second set of axes. (Of course to keep the same visual layout you would have to play with the y axis spine locations.)
Good point. I just changed the command line options so the plot whose
Y values are of interest are plotted on the right Y axis.
Separately, if your blue data are so quantized, you might use the blue data to choose a color for an axvspan (or axhspan, I forget which is which) to indicate how certain regions of time have different values of blue data. Then you would only need one set of axes, and your x,y labels would indicate what you want.
This also works, though I (and anyone looking at the graph) would have
to remember the mapping between color and numeric value. If I was a
synethete this might work, but I doubt most people would automatically
recall the mapping. 
Thx,
Skip
No assumption of super-human recollection or inference abilities . I would add a figure or axes legend with proxy artists for the appropriate color mappings, or even just a bunch of text boxes with the text label colored appropriately. You may be interested in my answer to a stackoverflow question [1].
-Sterling
[1] http://stackoverflow.com/questions/17086847/box-around-text-in-matplotlib/17092777#17092777
···
On Sep 19, 2013, at 10:14AM, Skip Montanaro wrote:
Separately, if your blue data are so quantized, you might use the blue data to choose a color for an axvspan (or axhspan, I forget which is which) to indicate how certain regions of time have different values of blue data. Then you would only need one set of axes, and your x,y labels would indicate what you want.
This also works, though I (and anyone looking at the graph) would have
to remember the mapping between color and numeric value. If I was a
synethete this might work, but I doubt most people would automatically
recall the mapping. 
On Sep 19, 2013, at 9:58, Sterling
Separately, if your blue data are so quantized, you might use the blue data to choose a color for an axvspan (or axhspan, I forget which is which) to indicate how certain regions of time have different values of blue data. Then you would only need one set of axes, and your x,y labels would indicate what you want.
Or perhaps colour the line segments based on the discrete value.
Cheers. Jody
···
Sent from my iPhone
-Sterling
On Sep 19, 2013, at 7:46AM, Skip Montanaro wrote:
I have a plot which uses both the left and right y axes. See
attached. Note that the feedback in the lower right-hand corner
displays the value on the right y axis (the blue plot). That's not a
very interesting value though. How can I control which value is
displayed as I move the cursor around the graph? Is it something
control interactively with a modifier key? I tried a few, but saw no
change. I'm currently using matplotlib v 1.1.0 (alas, something which
is also out of my control).
Thanks,
Skip
<axes.png>------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users