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 Dec 21, 2024
1 parent b7b4a69 commit eff6d7c
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='index',
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 eff6d7c

Please sign in to comment.