8000
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 9ee5e87 commit 7fdd46dCopy full SHA for 7fdd46d
lib/matplotlib/backend_bases.py
@@ -108,7 +108,7 @@ def _safe_pyplot_import():
108
from matplotlib.backends.registry import backend_registry
109
backend = backend_registry.backend_for_gui_framework(current_framework)
110
if backend is None:
111
- raise KeyError(backend)
+ raise RuntimeError(f"No suitable backend for the current GUI framework {current_framework!r}")
112
113
rcParams["backend"] = mpl.rcParamsOrig["backend"] = backend
114
import matplotlib.pyplot as plt # Now this should succeed.
0 commit comments