@@ -1406,13 +1406,13 @@ def pan(self, *args):
1406
1406
self .ToggleTool (self .wx_ids ['Zoom' ], False )
1407
1407
NavigationToolbar2 .pan (self , * args )
1408
1408
1409
- def configure_subplots (self , evt ):
1409
+ def configure_subplots (self , * args ):
1410
1410
global FigureManager # placates pyflakes: created by @_Backend.export
1411
1411
frame = wx .Frame (None , - 1 , "Configure subplots" )
1412
1412
_set_frame_icon (frame )
1413
1413
1414
1414
toolfig = Figure ((6 , 3 ))
1415
- canvas = self .get_canvas (frame , toolfig )
1415
+ canvas = type ( self .canvas ) (frame , - 1 , toolfig )
1416
1416
1417
1417
# Create a figure manager to manage things
1418
1418
FigureManager (canvas , 1 , frame )
@@ -1653,8 +1653,10 @@ def set_message(self, s):
1653
1653
1654
1654
class ConfigureSubplotsWx (backend_tools .ConfigureSubplotsBase ):
1655
1655
def trigger (self , * args ):
1656
- self .configure_subplots ()
1656
+ NavigationToolbar2Wx .configure_subplots (
1657
+ self ._make_classic_style_pseudo_toolbar ())
1657
1658
1659
+ @cbook .deprecated ("3.2" )
1658
1660
def configure_subplots (self ):
1659
1661
frame = wx .Frame (None , - 1 , "Configure subplots" )
1660
1662
_set_frame_icon (frame )
@@ -1671,6 +1673,7 @@ def configure_subplots(self):
1671
1673
SubplotTool (self .canvas .figure , toolfig )
1672
1674
frame .Show ()
1673
1675
1676
+ @cbook .deprecated ("3.2" )
1674
1677
def get_canvas (self , frame , fig ):
1675
1678
return type (self .canvas )(frame , - 1 , fig )
1676
1679
0 commit comments