Skip to content

Commit

Permalink
nrtplot -- fixed skewed setup window bug
Browse files Browse the repository at this point in the history
was mixing x and y parameters
  • Loading branch information
trmrsh committed May 11, 2021
1 parent 59eb742 commit d488640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hipercam/scripts/nrtplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ def _disp_ccd(self, ax, cnam, content, artists=None):
for llxh, llyh, nxh, nyh in swindows:
box, = ax.plot(
[llxh-0.5, llxh+nxh-0.5, llxh+nxh-0.5, llxh-0.5, llxh-0.5],
[llyh-0.5, llyh-0.5, llyh+nyh-0.5, llyh+nxh-0.5, llyh-0.5],
[llyh-0.5, llyh-0.5, llyh+nyh-0.5, llyh+nyh-0.5, llyh-0.5],
'--', color=COL_SETUP, animated=True
)
swins.append(box)
Expand Down Expand Up @@ -1311,7 +1311,7 @@ def disp_ccd(ax, cnam, xlo, xhi, ylo, yhi, cmap, content, animated):
for llxh, llyh, nxh, nyh in swindows:
box, = ax.plot(
[llxh-0.5, llxh+nxh-0.5, llxh+nxh-0.5, llxh-0.5, llxh-0.5],
[llyh-0.5, llyh-0.5, llyh+nyh-0.5, llyh+nxh-0.5, llyh-0.5],
[llyh-0.5, llyh-0.5, llyh+nyh-0.5, llyh+nyh-0.5, llyh-0.5],
'--', color=COL_SETUP, animated=True
)
swins.append(box)
Expand Down

0 comments on commit d488640

Please sign in to comment.