Skip to content

Commit

Permalink
Fix plot_channels y height
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Jul 17, 2024
1 parent 82baf2a commit c1c130d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pynonthermal/spencerfano.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,11 @@ def plot_channels(self, outputfilename=None, axis=None, xscalelog=False) -> None
# axes[0].plot(engrid, np.log10(delta_E_y_on_dE), marker="None", lw=1.5, color='black', label='')
# axes[0].set_ylabel(r'log d(E y(E)) / dE', fontsize=fs)

detaymax = max(d_etaion_by_d_en_vec * self.engrid)
detaymax = max(
*(d_etaion_by_d_en_vec * self.engrid),
*(d_etaexc_by_d_en_vec * self.engrid),
*(d_etaheat_by_d_en_vec * self.engrid),
)
axis.plot(
engridfull,
np.append(np.zeros(npts_low), d_etaion_by_d_en_vec) * engridfull / detaymax,
Expand Down

0 comments on commit c1c130d

Please sign in to comment.