File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def select_gui_toolkit(newbackend=None):
55
55
mapping = {
56
56
"qt" : "qtagg" ,
57
57
"gtk3" : "gtk3agg" ,
58
- ' gtk4' : ' gtk4agg' ,
58
+ " gtk4" : " gtk4agg" ,
59
59
"wx" : "wxagg" ,
60
60
"tk" : "tkagg" ,
61
61
"macosx" : "macosx" ,
@@ -89,15 +89,16 @@ def select_gui_toolkit(newbackend=None):
89
89
# creating a "class" that inherits from backend_bases._Backend and whose
90
90
# body is filled with the module's globals.
91
91
92
- if newbackend .lower () == ' tkagg' :
93
- backend_name = f' mpl_gui._patched_backends.{ newbackend .lower ()} '
92
+ if newbackend .lower () == " tkagg" :
93
+ backend_name = f" mpl_gui._patched_backends.{ newbackend .lower ()} "
94
94
else :
95
95
backend_name = cbook ._backend_module_name (newbackend )
96
96
97
97
mod = importlib .import_module (backend_name )
98
- if hasattr (mod , ' Backend' ):
98
+ if hasattr (mod , " Backend" ):
99
99
backend_mod = mod .Backend
100
100
else :
101
+
101
102
class backend_mod (matplotlib .backend_bases ._Backend ):
102
103
locals ().update (vars ())
103
104
You can’t perform that action at this time.
0 commit comments