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 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'utils/dc') 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() -- cgit