Skip to content

Commit

Permalink
Merge pull request #53 from newville/mpl_renderer
Browse files Browse the repository at this point in the history
Mpl renderer
  • Loading branch information
newville authored Oct 20, 2022
2 parents f13a729 + 42cd373 commit 2b2be5b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wxmplot/basepanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def set_wx_renderer(self, fig):
except:
pass

def gui_repaint(self, drawDC=None):
def gui_repaint(self, drawDC=None, origin=None):
"""
Update the displayed image on the GUI canvas, using the supplied
wx.PaintDC device context.
Expand All @@ -527,8 +527,7 @@ def gui_repaint(self, drawDC=None):
drawDC = wx.ClientDC(self.canvas)

bmp = self.canvas.bitmap

if wx.Platform == '__WXMSW__':
if wx.Platform == '__WXMSW__' and origin != 'WXAgg':
if self.wx_renderer is None:
self.set_wx_renderer(self.fig)
if self.wx_renderer:
Expand Down

0 comments on commit 2b2be5b

Please sign in to comment.