We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6ebf28 commit 237d5b6Copy full SHA for 237d5b6
lib/matplotlib/backends/backend_wx.py
@@ -1230,7 +1230,7 @@ def _get_toolbar(self, statbar):
1230
return toolbar
1231
1232
def get_canvas(self, fig):
1233
- return type(self.canvas)(self, -1, fig)
+ return FigureCanvasWx(self, -1, fig)
1234
1235
def get_figure_manager(self):
1236
DEBUG_MSG("get_figure_manager()", 1, self)
@@ -1508,7 +1508,7 @@ def __init__(self, canvas):
1508
self.retinaFix = 'wxMac' in wx.PlatformInfo
1509
1510
def get_canvas(self, frame, fig):
1511
- return FigureCanvasWx(frame, -1, fig)
+ return type(self.canvas)(frame, -1, fig)
1512
1513
def _init_toolbar(self):
1514
DEBUG_MSG("_init_toolbar", 1, self)
0 commit comments