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

Skip to content

Commit 6c83a15

Browse files
committed
Fix upside-down non-scaled image problem in SVG.
1 parent 39f05e8 commit 6c83a15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_svg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ def draw_image(self, gc, x, y, im, dx=None, dy=None, transform=None):
775775
else:
776776
flipped = self._make_flip_transform(transform)
777777
attrib[u'transform'] = generate_transform(
778-
[(u'matrix', transform.to_values())])
778+
[(u'matrix', flipped.to_values())])
779779
self.writer.element(
780780
u'image',
781781
x=unicode(x), y=unicode(y+dy), width=unicode(dx), height=unicode(-dy),

0 commit comments

Comments
 (0)