diff --git a/lib/matplotlib/backends/backend_svg.py b/lib/matplotlib/backends/backend_svg.py index feac9f31817c..5424351631f3 100644 --- a/lib/matplotlib/backends/backend_svg.py +++ b/lib/matplotlib/backends/backend_svg.py @@ -874,6 +874,9 @@ def draw_image(self, gc, x, y, im, transform=None): attrib['transform'] = generate_transform( [('matrix', flipped.frozen())]) + attrib['style'] = ( + 'image-rendering:crisp-edges;' + 'image-rendering:pixelated') self.writer.element( 'image', width=short_float_fmt(w), height=short_float_fmt(h),