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 4ad2f32

Browse filesBrowse files
authored
Merge pull request #10330 from anntzer/remove-comment
MNT: Shorten a long and now outdated comment.
2 parents 358e087 + d19ca02 commit 4ad2f32
Copy full SHA for 4ad2f32

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+3
-10
lines changed

‎lib/matplotlib/backend_bases.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.py
+3-10Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,16 +2199,9 @@ def print_figure(self, filename, dpi=None, facecolor=None, edgecolor=None,
21992199
if bbox_inches:
22002200
# call adjust_bbox to save only the given area
22012201
if bbox_inches == "tight":
2202-
# when bbox_inches == "tight", it saves the figure
2203-
# twice. The first save command is just to estimate
2204-
# the bounding box of the figure. A stringIO object is
2205-
# used as a temporary file object, but it causes a
2206-
# problem for some backends (ps backend with
2207-
# usetex=True) if they expect a filename, not a
2208-
# file-like object. As I think it is best to change
2209-
# the backend to support file-like object, i'm going
2210-
# to leave it as it is. However, a better solution
2211-
# than stringIO seems to be needed. -JJL
2202+
# When bbox_inches == "tight", it saves the figure twice. The
2203+
# first save command (to a BytesIO) is just to estimate the
2204+
# bounding box of the figure.
22122205
result = print_method(
22132206
io.BytesIO(),
22142207
dpi=dpi,

0 commit comments

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