Skip to content

Commit cad9d82

Browse files
authored
Merge pull request #960 from effigies/fix/nilearn-0.12.0
fix: Address failures from nilearn/matplotlib
2 parents 0fdca35 + 8653562 commit cad9d82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

niworkflows/viz/plots.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ def plot_carpet(
206206
if detrend:
207207
from nilearn.signal import clean
208208

209+
if tr is not None:
210+
tr = float(tr)
209211
data = clean(data.T, t_r=tr, filter=False).T
210212

211213
# We want all subplots to have the same dynamic range
@@ -1090,6 +1092,7 @@ def get_surface_meshes(density, surface_type):
10901092
vmin=mn,
10911093
vmax=mx,
10921094
axes=ax,
1095+
colorbar=False,
10931096
**hemi_kwargs,
10941097
**kwargs,
10951098
)

0 commit comments

Comments
 (0)