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 7bcdaf3 commit 44c34b2Copy full SHA for 44c34b2
lib/matplotlib/pyplot.py
@@ -326,8 +326,7 @@ def draw_if_interactive():
326
# Need to keep a global reference to the backend for compatibility reasons.
327
# See https://github.com/matplotlib/matplotlib/issues/6092
328
matplotlib.backends.backend = newbackend
329
- if not (isinstance(old_backend, str) and
330
- old_backend.lower() == newbackend.lower()):
+ if not cbook._str_equal(old_backend, newbackend):
331
close("all")
332
333
# make sure the repl display hook is installed in case we become
0 commit comments