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 f68ac89

Browse filesBrowse files
committed
backend_bases. Don't ignore the initial bbox when using bbox_extra_artist. Rather join the two bboxes
1 parent 96ecf45 commit f68ac89
Copy full SHA for f68ac89

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-1
lines changed

‎lib/matplotlib/backend_bases.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2091,7 +2091,8 @@ def print_figure(self, filename, dpi=None, facecolor='w', edgecolor='w',
20912091
if bbox_filtered:
20922092
_bbox = Bbox.union(bbox_filtered)
20932093
trans = Affine2D().scale(1.0 / self.figure.dpi)
2094-
bbox_inches = TransformedBbox(_bbox, trans)
2094+
bbox_extra = TransformedBbox(_bbox, trans)
2095+
bbox_inches = Bbox.union([bbox_inches, bbox_extra])
20952096

20962097
pad = kwargs.pop("pad_inches", None)
20972098
if pad is None:

0 commit comments

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