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

Skip to content

Commit eef207d

Browse files
committed
Remove additional arguments to get_window_extent
1 parent 879a3ce commit eef207d

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -796,12 +796,9 @@ def get_gridspec(self):
796796
"""Return the `.GridSpec` associated with the subplot, or None."""
797797
return self._subplotspec.get_gridspec() if self._subplotspec else None
798798

799-
@_api.delete_parameter("3.6", "args")
800-
@_api.delete_parameter("3.6", "kwargs")
801-
def get_window_extent(self, renderer=None, *args, **kwargs):
799+
def get_window_extent(self, renderer=None):
802800
"""
803-
Return the Axes bounding box in display space; *args* and *kwargs*
804-
are empty.
801+
Return the Axes bounding box in display space.
805802
806803
This bounding box does not include the spines, ticks, ticklabels,
807804
or other labels. For a bounding box including these elements use

lib/matplotlib/figure.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,7 @@ def contains(self, mouseevent):
279279
inside = self.bbox.contains(mouseevent.x, mouseevent.y)
280280
return inside, {}
281281

282-
@_api.delete_parameter("3.6", "args")
283-
@_api.delete_parameter("3.6", "kwargs")
284-
def get_window_extent(self, renderer=None, *args, **kwargs):
282+
def get_window_extent(self, renderer=None):
285283
# docstring inherited
286284
return self.bbox
287285

0 commit comments

Comments
 (0)