Skip to content

Commit

Permalink
fix: add units back in EDD energy calib result plot
Browse files Browse the repository at this point in the history
for slope and intercept
  • Loading branch information
rolfverberg committed Feb 29, 2024
1 parent 0fb5624 commit e55091f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHAP/edd/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,8 @@ def calibrate(self, calibration_config, detector, fit_index_ranges,
axs[1].text(
0.98, 0.02,
'Calibrated Values:\n\n'
f'Slope:\n {slope:.5f}\n\n Intercept:\n {intercept:.5f}',
f'Slope:\n {slope:.5f} $keV$/channel\n\n'
f'Intercept:\n {intercept:.5f} $keV$',
ha='right', va='bottom', ma='left',
transform=axs[1].transAxes,
bbox=dict(boxstyle='round',
Expand Down

0 comments on commit e55091f

Please sign in to comment.