When plotting two time series on two different y-scales using twinx
:
ax1 = pp.subplot(111)
ax2 = ax1.twinx()
the default behavior for navigation seems to be:
- zoom/pan will control both axes simultaneously
- the lower-right corner displays the mouse cursor coordinates with y-value of
ax2
I often find it useful to turn off zoom/pan for one of the axes with set_navigate
(thanks to this tip). However when navigation is turned off for ax2, the coordinates display is also turned off.
Is there anyway to disable zoom/pan without turning off the coordinates display?
Even better, is there a way to specify which one of the two axes to take the y-value from when displaying the cursor coordinates?
[version info: python 3.4.3 + matplotlib 1.5.1]