From ba7f7dfac146c51406d52a9a8f44f89679153fca Mon Sep 17 00:00:00 2001 From: Clare Shanahan Date: Wed, 3 Apr 2024 16:14:13 -0400 Subject: [PATCH] . --- jdaviz/configs/default/plugins/plot_options/plot_options.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jdaviz/configs/default/plugins/plot_options/plot_options.py b/jdaviz/configs/default/plugins/plot_options/plot_options.py index fbfdf8aaa4..4dff3fbf69 100644 --- a/jdaviz/configs/default/plugins/plot_options/plot_options.py +++ b/jdaviz/configs/default/plugins/plot_options/plot_options.py @@ -1023,8 +1023,7 @@ def _update_stretch_histogram(self, msg={}): # to avoid random step sizes. This logic is somewhat arbitrary and can be safely # modified or eventually exposed to the user if that would be useful. stretch_vstep = (hist_lims[1] - hist_lims[0]) / 100. - #self.stretch_vstep = _round_step(stretch_vstep)[0] - self.stretch_vstep = np.round(stretch_vstep, decimals=6) + self.stretch_vstep = _round_step(stretch_vstep)[0] with delay_callback(self.stretch_histogram.viewer.state, 'hist_x_min', 'hist_x_max'): self.stretch_histogram.viewer.state.hist_x_min = hist_lims[0]