diff options
author | tlatorre <tlatorre@uchicago.edu> | 2020-09-07 11:35:10 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2020-09-07 11:35:10 -0500 |
commit | fd231f3d5472ff43044ee57ff3ac5fb37f85da5b (patch) | |
tree | 9528b04e0a9e1e65b1a6cb46a2e07ee425640244 | |
parent | 994daf964aacde066ba32c6c6ab8a4267b91d6e9 (diff) | |
download | sddm-fd231f3d5472ff43044ee57ff3ac5fb37f85da5b.tar.gz sddm-fd231f3d5472ff43044ee57ff3ac5fb37f85da5b.tar.bz2 sddm-fd231f3d5472ff43044ee57ff3ac5fb37f85da5b.zip |
update python scripts to not call plt.show() when run with --save
-rwxr-xr-x | utils/dc | 16 | ||||
-rwxr-xr-x | utils/plot-michels | 2 | ||||
-rwxr-xr-x | utils/plot-muons | 2 |
3 files changed, 10 insertions, 10 deletions
@@ -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() |