Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "Legend.draggable() is deprecated" warning #57

Merged
merged 1 commit into from
Jun 28, 2019

Conversation

marko-bast
Copy link
Contributor

Just a small fix for a deprecated warning.

Before:

$ python -m spinup.run plot data/installtest/installtest_s0 -s3
Plotting from...
==================================================

data/installtest/installtest_s0

==================================================
/anaconda3/envs/spinningup/lib/python3.6/site-packages/seaborn/timeseries.py:183: UserWarning: The tsplot function is deprecated and will be removed or replaced (in a substantially altered version) in a future release.
  warnings.warn(msg, UserWarning)
/anaconda3/envs/spinningup/lib/python3.6/site-packages/matplotlib/legend.py:1196: MatplotlibDeprecationWarning: 
Legend.draggable() is drepecated in favor of Legend.set_draggable(). Legend.draggable may be reintroduced as a property in future releases.
  message="Legend.draggable() is drepecated in "

After:

$ python -m spinup.run plot data/installtest/installtest_s0 -s3
Plotting from...
==================================================

data/installtest/installtest_s0

==================================================
/anaconda3/envs/spinningup/lib/python3.6/site-packages/seaborn/timeseries.py:183: UserWarning: The tsplot function is deprecated and will be removed or replaced (in a substantially altered version) in a future release.
  warnings.warn(msg, UserWarning)

@bchess bchess merged commit 5267f1a into openai:master Jun 28, 2019
mahdinobar pushed a commit to mahdinobar/spinningup that referenced this pull request Sep 26, 2024
…ning

Fix "Legend.draggable() is deprecated" warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants