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 3a9e27e + e49471a commit 4625872
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 4625872

Please sign in to comment.