Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into siaf-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mfixstsci committed Mar 1, 2024
2 parents b9a0568 + 8fc7eef commit 364a599
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 364a599

Please sign in to comment.