@@ -99,7 +99,6 @@ def _safe_pyplot_import():
9999 if current_framework is None :
100100 raise # No, something else went wrong, likely with the install...
101101 backend_mapping = {'qt5' : 'qt5agg' ,
102- 'qt4' : 'qt4agg' ,
103102 'gtk3' : 'gtk3agg' ,
104103 'wx' : 'wxagg' ,
105104 'tk' : 'tkagg' ,
@@ -1680,7 +1679,7 @@ class FigureCanvasBase:
16801679 A high-level figure instance.
16811680 """
16821681
1683- # Set to one of {"qt5", "qt4", " gtk3", "wx", "tk", "macosx"} if an
1682+ # Set to one of {"qt5", "gtk3", "wx", "tk", "macosx"} if an
16841683 # interactive framework is required, or None otherwise.
16851684 required_interactive_framework = None
16861685
@@ -1756,7 +1755,7 @@ def _fix_ipython_backend2gui(cls):
17561755 # don't break on our side.
17571756 return
17581757 rif = getattr (cls , "required_interactive_framework" , None )
1759- backend2gui_rif = {"qt5" : "qt" , "qt4" : "qt" , " gtk3" : "gtk3" ,
1758+ backend2gui_rif = {"qt5" : "qt" , "gtk3" : "gtk3" ,
17601759 "wx" : "wx" , "macosx" : "osx" }.get (rif )
17611760 if backend2gui_rif :
17621761 if _is_non_interactive_terminal_ipython (ip ):
0 commit comments