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 90aab86

Browse filesBrowse files
committed
Put a bit of commenting in
1 parent 272b377 commit 90aab86
Copy full SHA for 90aab86

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+3
-0
lines changed

‎lib/matplotlib/image.py

Copy file name to clipboardExpand all lines: lib/matplotlib/image.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,9 @@ def get_extent(self):
11181118

11191119
def make_image(self, renderer, magnification=1.0, unsampled=False):
11201120
fac = renderer.dpi/self.figure.dpi
1121+
# fac here is to account for pdf, eps, svg backends where
1122+
# figure.dpi is set to 72. This means we need to scale the
1123+
# image (using magification) and offset it appropriately.
11211124
bbox = Bbox([[self.ox/fac, self.oy/fac],
11221125
[(self.ox/fac + self._A.shape[1]),
11231126
(self.oy/fac + self._A.shape[0])]])

0 commit comments

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