diff --git a/CHANGES.rst b/CHANGES.rst index e81b162f67..6cd1ca6416 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,8 @@ New Features ------------ - Stretch bounds tool now enables dynamic adjustment of spline knots. [#2545, #2623] +- Stretch histogram shows a spinner when the histogram data is updating. [#2644] + Cubeviz ^^^^^^^ - Calculated moments can now be output in velocity units. [#2584, #2588] diff --git a/jdaviz/configs/default/plugins/plot_options/plot_options.py b/jdaviz/configs/default/plugins/plot_options/plot_options.py index 9b88881259..75bf5c9c9c 100644 --- a/jdaviz/configs/default/plugins/plot_options/plot_options.py +++ b/jdaviz/configs/default/plugins/plot_options/plot_options.py @@ -334,6 +334,7 @@ class PlotOptions(PluginTemplateMixin): cmap_samples = Dict().tag(sync=True) swatches_palette = List().tag(sync=True) apply_RGB_presets_spinner = Bool(False).tag(sync=True) + stretch_hist_spinner = Bool(False).tag(sync=True) def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) @@ -714,6 +715,7 @@ def _update_stretch_hist_sync(self, msg={}): @observe('is_active', 'layer_selected', 'viewer_selected', 'stretch_hist_zoom_limits') @skip_if_no_updates_since_last_active() + @with_spinner('stretch_hist_spinner') def _update_stretch_histogram(self, msg={}): if not hasattr(self, 'viewer'): # pragma: no cover # plugin hasn't been fully initialized yet diff --git a/jdaviz/configs/default/plugins/plot_options/plot_options.vue b/jdaviz/configs/default/plugins/plot_options/plot_options.vue index d03d3d3ac1..a94d73d1b4 100644 --- a/jdaviz/configs/default/plugins/plot_options/plot_options.vue +++ b/jdaviz/configs/default/plugins/plot_options/plot_options.vue @@ -465,15 +465,33 @@
- - - +
+
+ + + +
+
+ +