Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Cairo backend so Images are actually visible for output formats o…
…ther than PNG.
  • Loading branch information
Westacular committed May 3, 2013
commit 547cb7bf289e6413daa09592b3c150886ff5fd47
3 changes: 3 additions & 0 deletions lib/matplotlib/backends/backend_cairo.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,11 @@ def draw_image(self, gc, x, y, im):
buf, cairo.FORMAT_ARGB32, cols, rows, cols*4)
ctx = gc.ctx
y = self.height - y - rows

ctx.save()
ctx.set_source_surface (surface, x, y)
ctx.paint()
ctx.restore()

im.flipud_out()

Expand Down