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

Skip to content

Remove incorrect warning in gca(). #10699

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
Mar 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1842,15 +1842,6 @@ def gca(self, **kwargs):
# if the cax matches this key then return the axes, otherwise
# continue and a new axes will be created
if key == ckey and isinstance(cax, projection_class):
cbook.warn_deprecated(
"3.0",
"Calling `gca()` using the same arguments as a "
"previous axes currently reuses the earlier "
"instance. In a future version, a new instance will "
"always be created and returned. Meanwhile, this "
"warning can be suppressed, and the future behavior "
"ensured, by passing a unique label to each axes "
"instance.")
return cax
else:
warnings.warn('Requested projection is different from '
Expand Down