Skip to content

Commit

Permalink
fix: remove all axes before fMRIPlot
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Aug 25, 2024
1 parent 42e4552 commit 1e12521
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion nireports/reportlets/modality/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __init__(
def plot(self, figure=None, out_file=None, fontsize=24):
"""Main plotter"""

plt.rcParams.update({"font.size": 22})
plt.rcParams.update({"font.size": fontsize})

nconfounds = len(self.confounds)
nspikes = len(self.spikes)
Expand All @@ -114,6 +114,19 @@ def plot(self, figure=None, out_file=None, fontsize=24):
height_ratios=height_ratios,
)

# Remove axes visualization for the whole grid
for ax in grid.subplots():
ax.spines[:].set_visible(False)
ax.spines[:].set_color("none")
ax.get_xaxis().set_visible(False)
ax.get_yaxis().set_visible(False)

for ax in figure.axes:
ax.spines[:].set_visible(False)
ax.spines[:].set_color("none")
ax.get_xaxis().set_visible(False)
ax.get_yaxis().set_visible(False)

grid_id = 0
for tsz, name, iszs in self.spikes:
spikesplot(tsz, title=name, outer_gs=grid[grid_id], tr=self.tr, zscored=iszs)
Expand Down

0 comments on commit 1e12521

Please sign in to comment.