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

Skip to content

Commit 96a4435

Browse files
committed
Deprecate the noop, unused FigureCanvasBase.resize.
Not to be confused with FigureManager.resize, which is implemented and used by various subclasses.
1 parent d48fca9 commit 96a4435

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)