We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 893134f commit 5ebb5f9Copy full SHA for 5ebb5f9
lib/matplotlib/pyplot.py
@@ -324,8 +324,7 @@ def draw_if_interactive():
324
# Need to keep a global reference to the backend for compatibility reasons.
325
# See https://github.com/matplotlib/matplotlib/issues/6092
326
matplotlib.backends.backend = newbackend
327
- if not (isinstance(old_backend, str) and
328
- old_backend.lower() == newbackend.lower()):
+ if not cbook._str_equal(old_backend, newbackend):
329
close("all")
330
331
# make sure the repl display hook is installed in case we become
0 commit comments