Skip to content

Commit 20e0f80

Browse files
committed
Remove additional arguments to get_window_extent
1 parent f146c00 commit 20e0f80

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
@@ -295,9 +295,7 @@ def contains(self, mouseevent):
295295
inside = self.bbox.contains(mouseevent.x, mouseevent.y)
296296
return inside, {}
297297

298-
@_api.delete_parameter("3.6", "args")
299-
@_api.delete_parameter("3.6", "kwargs")
300-
def get_window_extent(self, renderer=None, *args, **kwargs):
298+
def get_window_extent(self, renderer=None):
301299
# docstring inherited
302300
return self.bbox
303301

0 commit comments

Comments
 (0)