I have a minimal example reproducing a bug with linked axis and setting limits on them.
In this example when you click the focus button both plot series are searched for the min and max values in y that are within the current view's xlimits.
To show the bug you have to do some panning by simply click-and-drag on the top plot, then click focus button. Repeat that once or twice and you will see that the xlimits jump back to previous values which seems to be because the ax.limits[] are not properly being updated for the linked x axis.
If you instead drag on the lower plot and focus, everything works fine.
I have a minimal example reproducing a bug with linked axis and setting limits on them.
In this example when you click the focus button both plot series are searched for the min and max values in y that are within the current view's xlimits.
To show the bug you have to do some panning by simply click-and-drag on the top plot, then click focus button. Repeat that once or twice and you will see that the xlimits jump back to previous values which seems to be because the ax.limits[] are not properly being updated for the linked x axis.
If you instead drag on the lower plot and focus, everything works fine.
https://gist.github.com/bryaan/0bf7d34c69729b2d7145b5e8028fa90e