Skip to content

Commit

Permalink
MNT: Address deprecation warning in CI
Browse files Browse the repository at this point in the history
	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.
  • Loading branch information
DimitriPapadopoulos committed Apr 17, 2024
1 parent ff52ee1 commit b97acf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions niworkflows/viz/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,10 +946,12 @@ def confounds_correlation_plot(
data=gscorr,
x="index",
y=reference,
hue=x,
ax=ax1,
order=gs_descending,
palette="Reds_d",
saturation=0.5,
legend=False,
)

ax1.set_xlabel("Confound time series")
Expand Down

0 comments on commit b97acf3

Please sign in to comment.