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 c8a45c8

Browse filesBrowse files
committed
remove dpi pil_kwarg from print_webp
1 parent 3aaaad1 commit c8a45c8
Copy full SHA for c8a45c8

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+0
-1
lines changed

‎lib/matplotlib/backends/backend_agg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_agg.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,6 @@ def print_webp(self, filename_or_obj, *, pil_kwargs=None):
613613
FigureCanvasAgg.draw(self)
614614
if pil_kwargs is None:
615615
pil_kwargs = {}
616-
pil_kwargs.setdefault("dpi", (self.figure.dpi, self.figure.dpi))
617616
return (Image.fromarray(np.asarray(self.buffer_rgba()))
618617
.save(filename_or_obj, format='webp', **pil_kwargs))
619618

0 commit comments

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