Skip to content

Commit 1606edb

Browse files
committed
Partial revert of 8c25664
This removes the flipping done in Python and keeps the regression tests.
1 parent aaae0bd commit 1606edb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/matplotlib/backends/backend_svg.py

-3
Original file line numberDiff line numberDiff line change
@@ -743,12 +743,9 @@ def draw_image(self, gc, x, y, im, dx=None, dy=None, transform=None):
743743
self.writer.start(u'g', attrib={u'clip-path': u'url(#%s)' % clipid})
744744

745745
trans = [1,0,0,1,0,0]
746-
h,w = im.get_size_out()
747746
if rcParams['svg.image_noscale']:
748747
trans = list(im.get_matrix())
749748
trans[5] = -trans[5]
750-
trans[3] = -trans[3]
751-
y += h
752749
attrib[u'transform'] = generate_transform([(u'matrix', tuple(trans))])
753750
assert trans[1] == 0
754751
assert trans[2] == 0

0 commit comments

Comments
 (0)