joferkington / mpldatacursor

Interactive "data cursors" (a.k.a. annotation pop-ups) for matplotlib
MIT License
194 stars 47 forks source link

Add support for Axes.secondary_xaxis #96

Open zacmathe opened 4 years ago

zacmathe commented 4 years ago

Secondary axes are used to conveniently display an alternative unit system. Here are examples.

mpldatacursor seems to not recognize secondary axes. If I do something like ax2 = ax1.secondary_xaxis('top', functions=(fun1, fun2)) datacursor(ax2) then nothing happens.