Skip to content

Commit

Permalink
Merge pull request #228 from FrancaCassol/improve_plot
Browse files Browse the repository at this point in the history
Improve plot
  • Loading branch information
rlopezcoto committed Nov 24, 2019
2 parents 500a76e + 9dd059e commit 9da4573
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion lstchain/scripts/onsite/onsite_create_calibration_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,5 @@ def main():
print(f"\n >>> Exception: {e}")



if __name__ == '__main__':
main()
5 changes: 3 additions & 2 deletions lstchain/visualization/plot_calib.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,10 @@ def plot_all(ped_data, ff_data, calib_data, run=0, plot_file="none"):
select = np.logical_not(mask[chan])
median = int(np.median(n_pe[select]))
rms = np.std(n_pe[select])

mymin= median - 4*rms
mymax= median + 4*rms
label = f"{channel[chan]} Median {median:3.2f}, std {rms:5.2f}"
plt.hist(n_pe[select], label=label, histtype='step', range=(50, 110), bins=50, stacked=True, alpha=0.5,
plt.hist(n_pe[select], label=label, histtype='step', range=(mymin, mymax), bins=50, stacked=True, alpha=0.5,
fill=True)
plt.legend()
plt.xlabel(f'pe', fontsize=20)
Expand Down

0 comments on commit 9da4573

Please sign in to comment.