Permalink
Browse files

Partial revert of 8c25664

This removes the flipping done in Python and keeps the regression tests.
  • Loading branch information...
1 parent aaae0bd commit 1606edb490d8801531282fb8c5adf6d667becd38 @dmcdougall committed Jan 21, 2013
Showing with 0 additions and 3 deletions.
  1. +0 −3 lib/matplotlib/backends/backend_svg.py
@@ -743,12 +743,9 @@ def draw_image(self, gc, x, y, im, dx=None, dy=None, transform=None):
self.writer.start(u'g', attrib={u'clip-path': u'url(#%s)' % clipid})
trans = [1,0,0,1,0,0]
- h,w = im.get_size_out()
if rcParams['svg.image_noscale']:
trans = list(im.get_matrix())
trans[5] = -trans[5]
- trans[3] = -trans[3]
- y += h
attrib[u'transform'] = generate_transform([(u'matrix', tuple(trans))])
assert trans[1] == 0
assert trans[2] == 0

0 comments on commit 1606edb

Please sign in to comment.