Skip to content

Commit

Permalink
Try that.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Nov 14, 2023
1 parent 423e845 commit d3e8e98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions aslprep/interfaces/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def _run_interface(self, runtime):
paired_carpet=has_cifti,
).plot()
fig.savefig(self._results["out_file"], bbox_inches="tight")
fig.close()
return runtime


Expand Down
4 changes: 2 additions & 2 deletions aslprep/utils/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def __init__(
def plot(self, figure=None):
"""Generate fMRI plot."""
import seaborn as sns
from niworkflows.viz.plots import plot_carpet
from niworkflows.viz.plots import plot_carpet as plt_carpet

sns.set_style("whitegrid")
sns.set_context("paper", font_scale=0.8)
Expand Down Expand Up @@ -467,7 +467,7 @@ def plot(self, figure=None):
confoundplot(tseries, grid[grid_id], tr=self.tr, color=palette[i], name=name, **kwargs)
grid_id += 1

plot_carpet(
plt_carpet(
self.timeseries,
segments=self.segments,
subplot=grid[-1],
Expand Down

0 comments on commit d3e8e98

Please sign in to comment.