Open eholum opened 8 years ago
I think the best way to update the plot ranges on a units change is to maintain the same "viewport", but with the axes in the new units. In other words, calculate the xmin, xmax, ymin, ymax, convert the mins/maxes to the new set of units, and set the plot ranges to the converted values.
So if you're zoomed-in on a region, then change the units, the plot should still be zoomed-in on the same data points. The units (and therefore the plot ranges) change, but the same data points are shown on the plot.
Or should the values of the bounds not change when the units change? Or should the plot always reset on units changes?