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

Skip to content

Commit 4af95cb

Browse files
authored
Merge pull request #22050 from anntzer/fcr
Deprecate the noop, unused FigureCanvasBase.resize.
2 parents acadcdb + 96a4435 commit 4af95cb

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
``FigureCanvasBase.resize``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
This method has no effect and is deprecated. Use ``FigureManagerBase.resize``
4+
instead.

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,6 +1679,7 @@ def pick(self, mouseevent):
16791679
def blit(self, bbox=None):
16801680
"""Blit the canvas in bbox (default entire canvas)."""
16811681

1682+
@_api.deprecated("3.6", alternative="FigureManagerBase.resize")
16821683
def resize(self, w, h):
16831684
"""
16841685
UNUSED: Set the canvas size in pixels.

0 commit comments

Comments
 (0)