diff --git a/nireports/reportlets/modality/func.py b/nireports/reportlets/modality/func.py index c7fad66e..350769cf 100644 --- a/nireports/reportlets/modality/func.py +++ b/nireports/reportlets/modality/func.py @@ -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) @@ -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)