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 1930b42

Browse filesBrowse files
committed
FIX: ignore non-finite bbox
1 parent e4ba4f2 commit 1930b42
Copy full SHA for 1930b42

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎lib/matplotlib/axes/_base.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_base.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4259,7 +4259,9 @@ def get_tightbbox(self, renderer, call_axes_locator=True,
42594259

42604260
for a in bbox_artists:
42614261
bbox = a.get_tightbbox(renderer)
4262-
if bbox is not None and (bbox.width != 0 or bbox.height != 0):
4262+
if (bbox is not None and
4263+
(bbox.width != 0 or bbox.height != 0) and
4264+
np.isfinite(bbox.width) and np.isfinite(bbox.height)):
42634265
bb.append(bbox)
42644266

42654267
_bbox = mtransforms.Bbox.union(

0 commit comments

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