Skip to content

Commit

Permalink
Merge pull request #331 from mfixstsci/hst-aperture-hotfix
Browse files Browse the repository at this point in the history
HST Aperture Hotfix
  • Loading branch information
mfixstsci authored Feb 8, 2024
2 parents c091960 + 40b5dd4 commit 8fc7eef
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pysiaf/aperture.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,10 +685,12 @@ def plot(self, frame='tel', label=False, ax=None, title=False, units='arcsec',
horizontalalignment='center', rotation=label_rotation,
color=ax.lines[-1].get_color())
if fill:
# If a transform kwarg is supplied, pass it through to the fill function too
transform_kw = kwargs.get('transform', None)
ax.fill(x2 * scale, y2 * scale, color=fill_color, zorder=-40, alpha=fill_alpha, transform=transform_kw)

if self.observatory == "JWST":
# If a transform kwarg is supplied, pass it through to the fill function too
transform_kw = kwargs.get('transform', None)
ax.fill(x2 * scale, y2 * scale, color=fill_color, zorder=-40, alpha=fill_alpha, transform=transform_kw)
elif self.observatory == "HST":
ax.fill(x2 * scale, y2 * scale, color=fill_color, zorder=-40, alpha=fill_alpha)
if title:
ax.set_title("{0} frame".format(frame))
if show_frame_origin:
Expand Down

0 comments on commit 8fc7eef

Please sign in to comment.