Skip to content

Commit fb081dd

Browse files
committed
Remove incorrect warning in gca().
1 parent 5e22976 commit fb081dd

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/matplotlib/figure.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,15 +1842,6 @@ def gca(self, **kwargs):
18421842
# if the cax matches this key then return the axes, otherwise
18431843
# continue and a new axes will be created
18441844
if key == ckey and isinstance(cax, projection_class):
1845-
cbook.warn_deprecated(
1846-
"3.0",
1847-
"Calling `gca()` using the same arguments as a "
1848-
"previous axes currently reuses the earlier "
1849-
"instance. In a future version, a new instance will "
1850-
"always be created and returned. Meanwhile, this "
1851-
"warning can be suppressed, and the future behavior "
1852-
"ensured, by passing a unique label to each axes "
1853-
"instance.")
18541845
return cax
18551846
else:
18561847
warnings.warn('Requested projection is different from '

0 commit comments

Comments
 (0)