From ac700a912b3d4445231b4c3023437d593772e163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Sun, 5 May 2024 16:50:58 -0400 Subject: [PATCH] ENH: Set the `seaborn` barplot `hue` property value Set the `seaborn` barplot `hue` property value and set the `legend` property to `False`. Fixes: ``` /opt/conda/envs/fmriprep/lib/python3.10/site-packages/nireports/reportlets/nuisance.py:898: FutureWarning: 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. ``` --- nireports/reportlets/nuisance.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nireports/reportlets/nuisance.py b/nireports/reportlets/nuisance.py index 5bba48ba..cc157aab 100644 --- a/nireports/reportlets/nuisance.py +++ b/nireports/reportlets/nuisance.py @@ -899,10 +899,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")