Open rosteen opened 4 years ago
Another option (which I think I prefer?) is to have an always/often-present "rescale" button that does this on demand. But even if we want to go with @rosteen's suggestion, there should be a way to turn the rescaling off because there are some use cases where you want to show a new spectrum without it rescaling.
Ah that's a good suggestion. Could have a viewer attribute (enable_autorescale
?) that's on by default but could be set to False in the notebook. I also have been wanting to add a scale reset button for a while.
Currently Specviz.autoscale_y scales based only on the "reference" dataset, which is the first loaded into the viewer. It would be better if it did whatever happens when additional datasets are loaded, so that all the data currently displayed in the viewer fits on the plot.