8000 Merge branch 'wx_image' of https://github.com/mdboom/matplotlib into … · matplotlib/matplotlib@4c9dcba · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c9dcba

Browse files
committed
Merge branch 'wx_image' of https://github.com/mdboom/matplotlib into mdboom-wx_image
2 parents 689f53b + 88e1062 commit 4c9dcba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_wx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def draw_image(self, gc, x, y, im):
352352
bitmap = wx.BitmapFromBufferRGBA(cols,rows,image_array)
353353
gc = self.get_gc()
354354
gc.select()
355-
gc.gfx_ctx.DrawBitmap(bitmap,int(l),int(b),int(w),int(h))
355+
gc.gfx_ctx.DrawBitmap(bitmap,int(l),int(self.height-b),int(w),int(-h))
356356
gc.unselect()
357357

358358
def draw_text(self, gc, x, y, s, prop, angle, ismath):

0 commit comments

Comments
 (0)
0