SasView / sasview

Code for the SasView application.
BSD 3-Clause "New" or "Revised" License
49 stars 41 forks source link

Weird plot auto scaling #3086

Open butlerpd opened 3 weeks ago

butlerpd commented 3 weeks ago

Describe the bug Not sure when this happened but during PR testing today (always from installers) I discovered that the auto scaling of plots behavior has changed in very strange ways.

Using my favorite apoferritin data set:

To Reproduce Steps to reproduce the behavior: See above

Expected behavior clicking fit in any case should never also perform a zoom. And to the extent a zoom has happened hitting home/reset should recover the window

SasView version (please complete the following information):

Operating system (please complete the following information):

krzywon commented 3 weeks ago

See #2967. The chart range is now set based on the input data, not using matplotlib defaults because mpl was oddly scaling some, mostly flat, data sets. The relates to your first bullet.

The other bullet points (rescaling after linear fits, krtky, etc.) are all, I believe, directly related to #3020.