Skip to content

Commit

Permalink
Merge pull request openai#57 from marko-bast/fix_legend_draggable_war…
Browse files Browse the repository at this point in the history
…ning

Fix "Legend.draggable() is deprecated" warning
  • Loading branch information
bchess authored Jun 28, 2019
2 parents da53ce3 + ecf9bc0 commit 5267f1a
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 5267f1a

Please sign in to comment.