8000 Update backend_svg.py · matplotlib/matplotlib@b7e52de · GitHub
[go: up one dir, main page]

Skip to content

Commit b7e52de

Browse files
author
Po
authored
Update backend_svg.py
1 parent ab2d200 commit b7e52de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/backends/backend_svg.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,8 @@ def draw_image(self, gc, x, y, im, transform=None):
874874

875875
attrib['transform'] = generate_transform(
876876
[('matrix', flipped.frozen())])
877+
attrib['preserveAspectRatio'] = 'none'
878+
attrib['style'] = 'image-rendering:optimizeSpeed'
877879
self.writer.element(
878880
'image',
879881
width=short_float_fmt(w), height=short_float_fmt(h),

0 commit comments

Comments
 (0)
0