Skip to content

Commit 80a4dac

Browse files
MNT: Address deprecation warning in CI
Passing `palette` without assigning `hue` is deprecated and will be removed in v0.14.0. Assign the `x` variable to `hue` and set `legend=False` for the same effect.
1 parent 6586b42 commit 80a4dac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

niworkflows/viz/plots.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,10 +947,12 @@ def confounds_correlation_plot(
947947
data=gscorr,
948948
x='index',
949949
y=reference,
950+
hue='index',
950951
ax=ax1,
951952
order=gs_descending,
952953
palette='Reds_d',
953954
saturation=0.5,
955+
legend=False,
954956
)
955957

956958
ax1.set_xlabel('Confound time series')

0 commit comments

Comments
 (0)