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):
5555 mapping = {
5656 "qt" : "qtagg" ,
5757 "gtk3" : "gtk3agg" ,
58- ' gtk4' : ' gtk4agg' ,
58+ " gtk4" : " gtk4agg" ,
5959 "wx" : "wxagg" ,
6060 "tk" : "tkagg" ,
6161 "macosx" : "macosx" ,
@@ -89,15 +89,16 @@ def select_gui_toolkit(newbackend=None):
8989 # creating a "class" that inherits from backend_bases._Backend and whose
9090 # body is filled with the module's globals.
9191
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 ()} "
9494 else :
9595 backend_name = cbook ._backend_module_name (newbackend )
9696
9797 mod = importlib .import_module (backend_name )
98- if hasattr (mod , ' Backend' ):
98+ if hasattr (mod , " Backend" ):
9999 backend_mod = mod .Backend
100100 else :
101+
101102 class backend_mod (matplotlib .backend_bases ._Backend ):
102103 locals ().update (vars ())
103104
You can’t perform that action at this time.
0 commit comments