terminal = false docked = false packages = ["numpy", "matplotlib"] [splashscreen] autoclose = true [[interpreters]] src = "https://cdn.jsdelivr.net/pyodide/v0.23.4/full/pyodide.js" name = "pyodide-0.23.4" lang = "python"

import matplotlib.pyplot as plt import numpy as np from pyscript import display plt.style.use('_mpl-gallery') # make data x = np.linspace(0, 10, 100) y = 4 + 2 * np.sin(2 * x) # plot fig, ax = plt.subplots() ax.plot(x, y, linewidth=2.0) ax.set(xlim=(0, 8), xticks=np.arange(1, 8), ylim=(0, 8), yticks=np.arange(1, 8)) display(fig)