From b97acf3103714cdb74455d9e10970ed595598bde Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Wed, 17 Apr 2024 16:18:39 +0200 Subject: [PATCH] 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. --- niworkflows/viz/plots.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/niworkflows/viz/plots.py b/niworkflows/viz/plots.py index b1ffb219097..6003a1fe9b3 100644 --- a/niworkflows/viz/plots.py +++ b/niworkflows/viz/plots.py @@ -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")