Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FIX: suppress warning in Artist.properties #5710

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

Merged
merged 1 commit into from
Dec 26, 2015

Conversation

tacaswell
Copy link
Member

Calling get_axes currently raises a deprecating warning, eat this.

The Artist.properties function will be completely re-written in 2.1 with
traitlets so this is a reasonable stop-gap for now.

closes #5089

Calling `get_axes` currently raises a deprecating warning, eat this.

The Artist.properties function will be completely re-written in 2.1 with
traitlets so this is a reasonable stop-gap for now.

closes matplotlib#5089
@tacaswell tacaswell added this to the Critical bugfix release (1.5.1) milestone Dec 21, 2015
@@ -1276,7 +1276,9 @@ def properties(self):
continue

try:
val = func()
with warnings.catch_warnings():
warnings.simplefilter('ignore')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't the catch_warnings() be sufficient?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tacaswell is right. I had to add a similar change in jenshnielsen@0e1be8e to silence a warning in the cycler code

jenshnielsen added a commit that referenced this pull request Dec 26, 2015
FIX: suppress warning in Artist.properties
@jenshnielsen jenshnielsen merged commit 4356809 into matplotlib:v1.5.x Dec 26, 2015
@tacaswell tacaswell deleted the fix_axproperties_warning branch May 12, 2016 21:40
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.

3 participants