Skip to content

Commit

Permalink
fix plotting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Carnall authored and Adam Carnall committed Jul 8, 2023
1 parent 3b7b294 commit bc44327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bagpipes/plotting/plot_galaxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ def plot_galaxy(galaxy, show=True, return_y_scale=False, y_scale_spec=None):
# Add observed photometry to plot
if galaxy.photometry_exists and galaxy.spectrum_exists:
phot_ax = plt.subplot(gs[1, 0])
y_scale_phot = add_observed_photometry(galaxy, phot_ax).astype(float)
y_scale_phot = float(add_observed_photometry(galaxy, phot_ax))
y_scale.append(y_scale_phot)
axes.append(phot_ax)

elif galaxy.photometry_exists:
phot_ax = plt.subplot(gs[0, 0])
y_scale_phot = add_observed_photometry(galaxy, phot_ax)
y_scale_phot = float(add_observed_photometry(galaxy, phot_ax))
y_scale = [y_scale_phot]
axes = [phot_ax]

Expand Down

0 comments on commit bc44327

Please sign in to comment.