Thanks to visit codestin.com Credit goes to github.com
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 9a952c1 commit 5a7a7a2Copy full SHA for 5a7a7a2
1 file changed
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