Skip to content

Commit

Permalink
point_cloud limits update 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Slautin committed Dec 13, 2024
1 parent 624a9cd commit eb44a65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sidpy/viz/dataset_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,10 @@ def _onclick(self, event):
color=_c)

self.axes[1].set_title('point {}'.format(_point_number))

_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_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],
Expand Down

0 comments on commit eb44a65

Please sign in to comment.