Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0edefcd

Browse files
authored
Merge pull request #17062 from cover-me/master
Fix to "exported SVG files blurred in viewers"
2 parents db783f7 + 932a863 commit 0edefcd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/backends/backend_svg.py

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

875875
attrib['transform'] = generate_transform(
876876
[('matrix', flipped.frozen())])
877+
attrib['style'] = (
878+
'image-rendering:crisp-edges;'
879+
'image-rendering:pixelated')
877880
self.writer.element(
878881
'image',
879882
width=short_float_fmt(w), height=short_float_fmt(h),

0 commit comments

Comments
 (0)