Thanks to visit codestin.com Credit goes to github.com
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.
2 parents f7757eb + 60a5e57 commit 149ee00Copy full SHA for 149ee00
lib/matplotlib/backends/backend_wx.py
@@ -1227,7 +1227,7 @@ def _get_toolbar(self, statbar):
1227
return toolbar
1228
1229
def get_canvas(self, fig):
1230
- return type(self.canvas)(self, -1, fig)
+ return FigureCanvasWx(self, -1, fig)
1231
1232
def get_figure_manager(self):
1233
DEBUG_MSG("get_figure_manager()", 1, self)
@@ -1505,7 +1505,7 @@ def __init__(self, canvas):
1505
self.retinaFix = 'wxMac' in wx.PlatformInfo
1506
1507
def get_canvas(self, frame, fig):
1508
- return FigureCanvasWx(frame, -1, fig)
+ return type(self.canvas)(frame, -1, fig)
1509
1510
def _init_toolbar(self):
1511
DEBUG_MSG("_init_toolbar", 1, self)
0 commit comments