@@ -902,7 +902,7 @@ def _print_image(self, filetype, filename):
902
902
903
903
904
904
class FigureFrameWx (wx .Frame ):
905
- def __init__ (self , num , fig , * , canvas_class = None ):
905
+ def __init__ (self , num , fig , * , canvas_class ):
906
906
# On non-Windows platform, explicitly set the position - fix
907
907
# positioning bug on some Linux platforms
908
908
if wx .Platform == '__WXMSW__' :
@@ -914,16 +914,7 @@ def __init__(self, num, fig, *, canvas_class=None):
914
914
_log .debug ("%s - __init__()" , type (self ))
915
915
_set_frame_icon (self )
916
916
917
- # The parameter will become required after the deprecation elapses.
918
- if canvas_class is not None :
919
- self .canvas = canvas_class (self , - 1 , fig )
920
- else :
921
- _api .warn_deprecated (
922
- "3.6" , message = "The canvas_class parameter will become "
923
- "required after the deprecation period starting in Matplotlib "
924
- "%(since)s elapses." )
925
- self .canvas = self .get_canvas (fig )
926
-
917
+ self .canvas = canvas_class (self , - 1 , fig )
927
918
# Auto-attaches itself to self.canvas.manager
928
919
manager = FigureManagerWx (self .canvas , num , self )
929
920
0 commit comments