Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88e1062

Browse files
cgohlkemdboom
authored andcommitted
BUG #3236567: backend_wx draws images at wrong position
1 parent 3bf76b9 commit 88e1062

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)