Skip to content

Commit e69a68e

Browse files
committed
Update plotting.py
1 parent b9e5204 commit e69a68e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aslprep/interfaces/plotting.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def _run_interface(self, runtime):
120120
paired_carpet=has_cifti,
121121
).plot()
122122
fig.savefig(self._results["out_file"], bbox_inches="tight")
123-
fig.close()
123+
fig.clf()
124124
return runtime
125125

126126

@@ -193,7 +193,7 @@ def _run_interface(self, runtime):
193193
tr=self.inputs.tr,
194194
).plot()
195195
fig.savefig(self._results["out_file"], bbox_inches="tight")
196-
fig.close()
196+
fig.clf()
197197
return runtime
198198

199199

@@ -257,6 +257,6 @@ def _run_interface(self, runtime):
257257
)
258258
fig.tight_layout()
259259
fig.savefig(self._results["out_file"])
260-
fig.close()
260+
fig.clf()
261261

262262
return runtime

0 commit comments

Comments
 (0)