Quansight / lsst_dashboard

LSST Dashboard https://quansight.github.io/lsst_dashboard/
BSD 3-Clause "New" or "Revised" License
8 stars 3 forks source link

Adding/removing a metric resets skyplot to home zoom level/pan position #93

Closed timothydmorton closed 4 years ago

timothydmorton commented 4 years ago

A common use case might be to zoom in on a region of the sky plot and then add a metric, wishing to see it at that same location. As it is now, adding or removing a metric fully resets the sky plot. Perhaps this can be addressed by independently keeping intentional track of the x_range and y_range of the skyplots, such that new plots are loaded with those ranges.

timothydmorton commented 4 years ago

This might relate to #28 as well.

philippjfr commented 4 years ago

Perhaps this can be addressed by independently keeping intentional track of the x_range and y_range of the skyplots, such that new plots are loaded with those ranges.

I'd create RangeXY streams once on initialization and then reuse them and initialize the x_range and y_range parameters on the rasterize call with their values.