Skip to content

Commit a97f6e7

Browse files
committed
matplotlib wasm
1 parent 4900a61 commit a97f6e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
await micropip.install('dist/healpy-0.1.0-py3-none-any.whl');
1414
await micropip.install('matplotlib');
1515
pyodide.runPython(`
16+
import matplotlib
17+
matplotlib.use("module://matplotlib_pyodide.wasm_backend")
1618
import healpy as hp
1719
import matplotlib.pyplot as plt
18-
import matplotlib
19-
matplotlib.use("module://matplotlib.backends.html5_canvas_backend")
20+
2021
m = hp.read_map(
2122
"test/data/wmap_band_iqumap_r9_7yr_W_v4_udgraded32_masked_smoothed10deg_fortran.fits"
2223
)

0 commit comments

Comments
 (0)