Skip to content

Commit

Permalink
Merge pull request matplotlib#1 from mdboom/interps
Browse files Browse the repository at this point in the history
Fixes the SVG issues with "none" interpolation
  • Loading branch information
jkseppan committed Sep 20, 2011
2 parents 6923c7f + 29b593f commit ecf2e34
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 84 deletions.
5 changes: 3 additions & 2 deletions lib/matplotlib/backends/backend_svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,11 +764,12 @@ def draw_image(self, gc, x, y, im, dx=None, dy=None, transform=None):
width=str(w), height=str(h),
attrib=attrib)
else:
flipped = self._make_flip_transform(transform)
attrib['transform'] = generate_transform(
[('matrix', transform.to_values())])
[('matrix', flipped.to_values())])
self.writer.element(
'image',
x=str(x), y=str(y), width=str(dx), height=str(dy),
x=str(x), y=str(y+dy), width=str(dx), height=str(-dy),
attrib=attrib)

if url is not None:
Expand Down
Loading

0 comments on commit ecf2e34

Please sign in to comment.