Skip to content

Commit f48a20e

Browse files
committed
Set default backend by putting it at top of backend search order
1 parent 42483ad commit f48a20e

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎lib/matplotlib/pyplot.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,8 @@ def switch_backend(newbackend: str) -> None:
419419
candidates = [backend]
420420
else:
421421
candidates = []
422+
if sys.platform == 'emscripten':
423+
candidates.append("pyodide")
422424
candidates += [
423425
"macosx", "qtagg", "gtk4agg", "gtk3agg", "tkagg", "wxagg"]
424426

‎pyproject.toml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,10 +447,6 @@ test-environment = "PIP_PREFER_BINARY=true"
447447
[tool.cibuildwheel.macos.environment]
448448
MACOSX_DEPLOYMENT_TARGET = "10.14"
449449

450-
[tool.cibuildwheel.pyodide]
451-
config-settings.setup-args = [
452-
"-DrcParams-backend=pyodide"
453-
]
454450
test-requires = "pytest"
455451
test-command = [
456452
# Wheels are built without test images, so copy them into the testing directory.

0 commit comments

Comments
 (0)