From a301dbbcac69fd748cd862b23de825b92de25645 Mon Sep 17 00:00:00 2001 From: Slautin Date: Fri, 13 Dec 2024 22:38:38 +0100 Subject: [PATCH] point_cloud limits update 4 --- sidpy/viz/dataset_viz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sidpy/viz/dataset_viz.py b/sidpy/viz/dataset_viz.py index c9aaae5e..607bb70c 100644 --- a/sidpy/viz/dataset_viz.py +++ b/sidpy/viz/dataset_viz.py @@ -1367,7 +1367,7 @@ def _onclick(self, event): _sp_min, _sp_max = np.min(self.spectrum.compute()), np.max(self.spectrum.compute()) if self.variance is not None: - _sp_min, _sp_max = _sp_min - np.max(self.variance), _sp_max + np.max(self.variance) + _sp_min, _sp_max = _sp_min - np.max(self.variance.compute()), _sp_max + np.max(self.variance.compute()) _sp_d = _sp_max - _sp_min self.axes[1].set_ylim(_sp_min-0.2*_sp_d, _sp_max+0.2*_sp_d) self.sel_point.set_offsets(np.column_stack((self.px_coord[_point_number, 0],