Skip to content

Commit

Permalink
Fix "Legend.draggable() is deprecated" warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Bastovanovic committed Nov 24, 2018
1 parent dd0f628 commit e49471a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinup/utils/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e49471a

Please sign in to comment.