Skip to content

Commit c6ec7f1

Browse files
authored
Update backend_svg.py
1 parent 110a7f8 commit c6ec7f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/backends/backend_svg.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -874,8 +874,7 @@ 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:pixelated'
877+
attrib['style'] = 'image-rendering:crisp-edges;image-rendering:pixelated'
879878
self.writer.element(
880879
'image',
881880
width=short_float_fmt(w), height=short_float_fmt(h),

0 commit comments

Comments
 (0)