Skip to content

Commit

Permalink
Minor style fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccully committed Dec 19, 2023
1 parent 2db2001 commit dd75d34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions banzai_nres/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ def do_stage(self, image):
fig2, axes = pl.subplots(nrows=2, ncols=3, figsize=(11, 8.5))

for ax, line_center, line_name, line_order in zip(axes.flatten(), line_centers, line_names, line_orders):
label = f"{line_name} at \n {image.meta['RV'] / 1000.0: 0.3f} (RV) - {image.meta['BARYCORR'] / 1000.0: 0.3f} (BC) km / s"
label = f"{line_name} at \n "
label += f"{image.meta['RV'] / 1000.0: 0.3f} (RV) - {image.meta['BARYCORR'] / 1000.0: 0.3f} (BC) km / s"
make_line_plot(wavelength, flux, order, ax, line_center, label,
line_order, wavelength_correction=wavelength_correction)

Expand Down Expand Up @@ -155,7 +156,7 @@ def make_line_plot(wavelength, flux, order, ax, line_center, line_name, line_ord
ax.plot(np.array([this_center, this_center]) / wavelength_correction,
[0, upper_plot_limit], color='blue')
else:
ax.plot(np.array([line_center, line_center]) / wavelength_correction,
ax.plot(np.array([line_center, line_center]) / wavelength_correction,
[0, upper_plot_limit], color='blue')
ax.set_xlabel('observed wavelength (Angstroms)')
ax.set_ylabel('normalized flux')
Expand Down

0 comments on commit dd75d34

Please sign in to comment.