File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,6 @@ def pylab_setup(name=None):
42
42
if name is None :
43
43
# validates, to match all_backends
44
44
name = matplotlib .get_backend ()
45
- # need to keep a global reference to the backend for compatibility
46
- # reasons. See https://github.com/matplotlib/matplotlib/issues/6092
47
- global backend
48
- backend = name
49
45
if name .startswith ('module://' ):
50
46
backend_name = name [9 :]
51
47
else :
@@ -85,4 +81,8 @@ def do_nothing(*args, **kwargs):
85
81
matplotlib .verbose .report ('backend %s version %s' %
86
82
(name , backend_version ))
87
83
84
+ # need to keep a global reference to the backend for compatibility
85
+ # reasons. See https://github.com/matplotlib/matplotlib/issues/6092
86
+ global backend
87
+ backend = name
88
88
return backend_mod , new_figure_manager , draw_if_interactive , show
You can’t perform that action at this time.
0 commit comments