Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix: Coadd sharex #1795

Merged
merged 2 commits into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/releases/1.15.1dev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ Bug Fixes
file (as it was before).
- Allow `spec_flex_shift()` to take as input either the name of an archive sky spectrum or
directly a sky spectrum. This fixes a bug in the flexure correction for SlicerIFU.
- The `--show` option of the `pypeit_coadd_1dspec` script was not properly displaying the
x-axis of the plot. Both the top and bottom panels now scale together.
2 changes: 1 addition & 1 deletion pypeit/core/coadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1581,7 +1581,7 @@ def coadd_qa(wave, flux, ivar, nused, gpm=None, tell=None,
# plot how may exposures you used at each pixel
# [left, bottom, width, height]
num_plot = fig.add_axes([0.10, 0.70, 0.80, 0.23])
spec_plot = fig.add_axes([0.10, 0.10, 0.80, 0.60])
spec_plot = fig.add_axes([0.10, 0.10, 0.80, 0.60], sharex=num_plot)
num_plot.plot(wave[wave_gpm],nused[wave_gpm],drawstyle='steps-mid',color='k',lw=2)
num_plot.set_xlim([wave_min, wave_max])
num_plot.set_ylim([0.0, np.fmax(1.1*nused.max(), nused.max()+1.0)])
Expand Down
Loading