aboutsummaryrefslogtreecommitdiffstats
path: root/plots2.py
diff options
context:
space:
mode:
Diffstat (limited to 'plots2.py')
-rw-r--r--plots2.py18
1 files changed, 15 insertions, 3 deletions
diff --git a/plots2.py b/plots2.py
index 7ed0b3b..c6ddd90 100644
--- a/plots2.py
+++ b/plots2.py
@@ -25,7 +25,7 @@ def SigmaR(iout0, iout1,\
showminmax = False
# Prepare Figure, Draw on Subplot
- fig1 = plt.figure()
+ fig1 = plt.figure(1)
fig1, vmin, vmax = plots2low.SigmaR(iout0, iout1, ymin, ymax,\
vmin, vmax, showminmax,\
fig=fig1, nrow=1, ncol=1, isub=1)
@@ -37,6 +37,10 @@ def SigmaR(iout0, iout1,\
if show:
plt.show()
+ # Close Plotting
+ plt.close()
+ plt.clf()
+
return vmin, vmax
@@ -58,7 +62,7 @@ def MdotR(iout0, iout1,\
showminmax = False
# Prepare Figure, Draw on Subplot
- fig1 = plt.figure()
+ fig1 = plt.figure(1)
fig1, vmin, vmax = plots2low.MdotR(iout0, iout1, ymin, ymax,\
vmin, vmax, showminmax,\
fig=fig1, nrow=1, ncol=1, isub=1)
@@ -70,6 +74,10 @@ def MdotR(iout0, iout1,\
if show:
plt.show()
+ # Close Plotting
+ plt.close()
+ plt.clf()
+
return vmin, vmax
@@ -95,7 +103,7 @@ def MSR(iout0, iout1,\
showminmax = False
# Prepare Figure, Draw on Subplots
- fig1 = plt.figure(figsize=(16.0, 6.0))
+ fig1 = plt.figure(1, figsize=(16.0, 6.0))
fig1, vmin1, vmax1 = plots2low.SigmaR(iout0, iout1, ymin1, ymax1,\
vmin1, vmax1, showminmax,\
fig=fig1, nrow=1, ncol=2, isub=1)
@@ -111,5 +119,9 @@ def MSR(iout0, iout1,\
if show:
plt.show()
+ # Close Plotting
+ plt.close()
+ plt.clf()
+
return vmin1, vmax1, vmin2, vmax2