Skip to content

Commit b97acf3

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 ff52ee1 commit b97acf3

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
@@ -946,10 +946,12 @@ def confounds_correlation_plot(
946946
data=gscorr,
947947
x="index",
948948
y=reference,
949+
hue=x,
949950
ax=ax1,
950951
order=gs_descending,
951952
palette="Reds_d",
952953
saturation=0.5,
954+
legend=False,
953955
)
954956

955957
ax1.set_xlabel("Confound time series")

0 commit comments

Comments
 (0)