aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2013-09-19 10:00:41 +0200
committerVolker Hoffmann <volker@cheleb.net>2013-09-19 10:00:41 +0200
commit54f8f172abf7829f01da779d4798513358951c20 (patch)
tree2ae8aa14ddde2598bcd7c66dbd95c822bfbbea7f
parent2648067f2e882222574e9eea67e8c62294f26ece (diff)
close figures after drawing/saving/showing
-rw-r--r--mkcuts_dvpT.py20
1 files changed, 17 insertions, 3 deletions
diff --git a/mkcuts_dvpT.py b/mkcuts_dvpT.py
index fb3e256..ce6bed6 100644
--- a/mkcuts_dvpT.py
+++ b/mkcuts_dvpT.py
@@ -234,9 +234,23 @@ def main():
f7.savefig('cut_Txy_%05d.png' % iout)
f8.savefig('cut_Tzy_%05d.png' % iout)
- # Show Figures?
- if args.show:
- plt.show()
+ # Show Figures?
+ if args.show:
+ plt.show()
+
+ # Close Figures
+ if args.d:
+ plt.close(f1)
+ plt.close(f2)
+ if args.v:
+ plt.close(f3)
+ plt.close(f4)
+ if args.p:
+ plt.close(f5)
+ plt.close(f6)
+ if args.T:
+ plt.close(f7)
+ plt.close(f8)
"""
Jump into Main().