Skip to content

Commit

Permalink
Update jdaviz/configs/cubeviz/plugins/tools.py
Browse files Browse the repository at this point in the history
Co-authored-by: P. L. Lim <[email protected]>
  • Loading branch information
javerbukh and pllim authored Jun 1, 2022
1 parent c583822 commit 6def97d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions jdaviz/configs/cubeviz/plugins/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,11 @@ def remove_highlight_on_spaxel(self):
if not isinstance(x, SelectedSpaxel)]

def _calc_coords(self, x, y):
x_coords = [[x - 0.5, x + 0.5], [x - 0.5, x + 0.5]]
y_coords = [[y - 0.5, y + 0.5], [y + 0.5, y - 0.5]]
xmin = x - 0.5
xmax = x + 0.5
ymin = y - 0.5
ymax = y + 0.5
x_coords = [[xmin, xmax], [xmin, xmax]]
y_coords = [[ymin, ymax], [ymax, ymin]]

return x_coords, y_coords

0 comments on commit 6def97d

Please sign in to comment.