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

Skip to content

Commit 110a7f8

Browse files
author
Po
authored
Update backend_svg.py
Change `image-rendering` from `optimizeSpeed` to `pixelated`. `optimizeSpeed` is used by Inkscape only
1 parent b7e52de commit 110a7f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_svg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ def draw_image(self, gc, x, y, im, transform=None):
875875
attrib['transform'] = generate_transform(
876876
[('matrix', flipped.frozen())])
877877
attrib['preserveAspectRatio'] = 'none'
878-
attrib['style'] = 'image-rendering:optimizeSpeed'
878+
attrib['style'] = 'image-rendering:pixelated'
879879
self.writer.element(
880880
'image',
881881
width=short_float_fmt(w), height=short_float_fmt(h),

0 commit comments

Comments
 (0)