Skip to content

Commit

Permalink
add show_wfs_around_obs and show_wfs_during_program to the online doc…
Browse files Browse the repository at this point in the history
…s; also some minor tweaks to show_wfs_during_program to improve output plot formatting
  • Loading branch information
mperrin committed May 12, 2024
1 parent bd42089 commit 0e011ee
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 11 deletions.
118 changes: 109 additions & 9 deletions docs/jwst_measured_opds.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions webbpsf/trending.py
Original file line number Diff line number Diff line change
Expand Up @@ -1947,7 +1947,7 @@ def show_wfs_during_program(

# Plot!
if ax is None:
fig, ax = plt.subplots(figsize=(8, 4), ncols=1, nrows=1)
fig, ax = plt.subplots(figsize=(12, 6), ncols=1, nrows=1)

ax.plot_date(
wfs_dates_array.plot_date, rms_obs, '+', color='C1', ls='-', label='Measured RMS Wavefront Error at NIRCam NRCA3'
Expand All @@ -1972,7 +1972,7 @@ def show_wfs_during_program(
)
for row in science_visit_table:
ax.fill_betweenx([0, 120], row['start_mjd'].plot_date, (row['end_mjd']).plot_date, color='gray', alpha=0.2)
ax.text(row['start_mjd'].plot_date, plot_sci_y + 4, row['visit_id'], rotation=45, fontsize='small')
ax.text(row['start_mjd'].plot_date, plot_sci_y + 4, row['visit_id'], rotation=45, fontsize='small', clip_on=True)

ax.set_ylim(0, 120)
ax.legend(framealpha=0.99)
Expand Down

0 comments on commit 0e011ee

Please sign in to comment.