From ecf9bc0984ce02e2d38d9a29c181e6e3902a19bc Mon Sep 17 00:00:00 2001 From: Marko Bastovanovic Date: Sat, 24 Nov 2018 15:02:36 +0100 Subject: [PATCH] Fix "Legend.draggable() is deprecated" warning --- spinup/utils/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spinup/utils/plot.py b/spinup/utils/plot.py index e8d253dab..7a90f176c 100644 --- a/spinup/utils/plot.py +++ b/spinup/utils/plot.py @@ -39,7 +39,7 @@ def plot_data(data, xaxis='Epoch', value="AverageEpRet", condition="Condition1", Changes the colorscheme and the default legend style, though. """ - plt.legend(loc='best').draggable() + plt.legend(loc='best').set_draggable(True) """ For the version of the legend used in the Spinning Up benchmarking page,