aboutsummaryrefslogtreecommitdiff
path: root/utils/dc
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2020-09-07 11:35:10 -0500
committertlatorre <tlatorre@uchicago.edu>2020-09-07 11:35:10 -0500
commitfd231f3d5472ff43044ee57ff3ac5fb37f85da5b (patch)
tree9528b04e0a9e1e65b1a6cb46a2e07ee425640244 /utils/dc
parent994daf964aacde066ba32c6c6ab8a4267b91d6e9 (diff)
downloadsddm-fd231f3d5472ff43044ee57ff3ac5fb37f85da5b.tar.gz
sddm-fd231f3d5472ff43044ee57ff3ac5fb37f85da5b.tar.bz2
sddm-fd231f3d5472ff43044ee57ff3ac5fb37f85da5b.zip
update python scripts to not call plt.show() when run with --save
Diffstat (limited to 'utils/dc')
-rwxr-xr-xutils/dc16
1 files changed, 8 insertions, 8 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()