From fd231f3d5472ff43044ee57ff3ac5fb37f85da5b Mon Sep 17 00:00:00 2001 From: tlatorre Date: Mon, 7 Sep 2020 11:35:10 -0500 Subject: update python scripts to not call plt.show() when run with --save --- utils/dc | 16 ++++++++-------- utils/plot-michels | 2 +- utils/plot-muons | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/utils/dc b/utils/dc index d116c65..ba363cc 100755 --- a/utils/dc +++ b/utils/dc @@ -649,12 +649,12 @@ if __name__ == '__main__': plt.figure(5) plt.savefig("dc_num_events_after_cuts.pdf") plt.savefig("dc_num_events_after_cuts.eps") + else: + plt.figure(3) + plt.suptitle("Expected number of events") + plt.figure(4) + plt.suptitle("Probability of correctly tagging background") + plt.figure(5) + plt.suptitle("Expected number of Backgrounds after cuts") - plt.figure(3) - plt.suptitle("Expected number of events") - plt.figure(4) - plt.suptitle("Probability of correctly tagging background") - plt.figure(5) - plt.suptitle("Expected number of Backgrounds after cuts") - - plt.show() + plt.show() diff --git a/utils/plot-michels b/utils/plot-michels index 77c9cc1..01e7028 100755 --- a/utils/plot-michels +++ b/utils/plot-michels @@ -160,4 +160,4 @@ if __name__ == '__main__': plt.savefig("michel_electrons_ke.eps") else: plt.title("Michel Electrons") - plt.show() + plt.show() diff --git a/utils/plot-muons b/utils/plot-muons index 59be494..45139a7 100755 --- a/utils/plot-muons +++ b/utils/plot-muons @@ -354,4 +354,4 @@ if __name__ == '__main__': plt.savefig("michel_electrons_ke.eps") else: plt.title("Michel Electrons") - plt.show() + plt.show() -- cgit