Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 29fe981

Browse filesBrowse files
committed
DOC: move usage tutorial info to Users guide rst [skip actions] [skip azp] [skip appveyor]
1 parent 5999bbd commit 29fe981
Copy full SHA for 29fe981

File tree

Expand file treeCollapse file tree

4 files changed

+6
-5
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+6
-5
lines changed

‎lib/matplotlib/artist.py

Copy file name to clipboardExpand all lines: lib/matplotlib/artist.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def stale(self, val):
300300
if val and self.stale_callback is not None:
301301
self.stale_callback(self, val)
302302

303-
def get_window_extent(self, renderer=None):
303+
def get_window_extent(self):
304304
"""
305305
Get the axes bounding box in display space.
306306

‎lib/matplotlib/collections.py

Copy file name to clipboardExpand all lines: lib/matplotlib/collections.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def get_datalim(self, transData):
303303
return bbox
304304
return transforms.Bbox.null()
305305

306-
def get_window_extent(self, renderer=None):
306+
def get_window_extent(self):
307307
# TODO: check to ensure that this does not fail for
308308
# cases other than scatter plot legend
309309
return self.get_datalim(transforms.IdentityTransform())

‎lib/matplotlib/image.py

Copy file name to clipboardExpand all lines: lib/matplotlib/image.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,11 +1409,12 @@ def __init__(self, bbox,
14091409
self.bbox = bbox
14101410

14111411
def get_window_extent(self, renderer=None):
1412+
if renderer is None:
1413+
renderer = self.get_figure()._cachedRenderer
1414+
14121415
if isinstance(self.bbox, BboxBase):
14131416
return self.bbox
14141417
elif callable(self.bbox):
1415-
if renderer is None:
1416-
renderer = self.get_figure()._cachedRenderer
14171418
return self.bbox(renderer)
14181419
else:
14191420
raise ValueError("Unknown type of bbox")

‎lib/matplotlib/lines.py

Copy file name to clipboardExpand all lines: lib/matplotlib/lines.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ def set_picker(self, p):
619619
self.pickradius = p
620620
self._picker = p
621621

622-
def get_window_extent(self, renderer=None):
622+
def get_window_extent(self, renderer):
623623
bbox = Bbox([[0, 0], [0, 0]])
624624
trans_data_to_xy = self.get_transform().transform
625625
bbox.update_from_data_xy(trans_data_to_xy(self.get_xydata()),

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.