Scale problem with shared axes


  While upgrading from matplotlib 0.91.2 to 0.98.2 my software stop working properly. I had to adapt one of my function to autoscale visible lines. Basically, the modified function seems to work but when I use it on a shared axes context I run into problem.

A small script in attachment illustrate the problem.
Actually, the second axes which sharex with first one, prevent the first one to be scaled properly. The script works properly with matplotlib 0.91.2 but fail (autoscaling not working) using 0.98.2
Am I doing something wrong in my autoscale function while updating the axs.dataLim ? Or is it something more tricky?

Thanks in advance for your help.

David (1.13 KB)