Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 53b5ed9

Browse filesBrowse files
committed
Clarify allowable backend switches in matplotlib.use().
1 parent 8fec6ea commit 53b5ed9
Copy full SHA for 53b5ed9

File tree

Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed

‎lib/matplotlib/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+7-2Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,11 +1074,16 @@ def use(backend, *, force=True):
10741074
10751075
or a string of the form: ``module://my.module.name``.
10761076
1077+
Switching to an interactive backend is not possible if an unrelated
1078+
event loop has already been started (e.g., switching to GTK3Agg if a
1079+
TkAgg window has already been opened). Switching to a non-interactive
1080+
backend is always possible.
1081+
10771082
force : bool, default: True
10781083
If True (the default), raise an `ImportError` if the backend cannot be
10791084
set up (either because it fails to import, or because an incompatible
1080-
GUI interactive framework is already running); if False, ignore the
1081-
failure.
1085+
GUI interactive framework is already running); if False, silently
1086+
ignore the failure.
10821087
10831088
See Also
10841089
--------

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.