From 80a4dace7bf63767158e0a064b89ab8aea4209a3 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 d415327cb41..09004aba29e 100644 --- a/niworkflows/viz/plots.py +++ b/niworkflows/viz/plots.py @@ -947,10 +947,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')