packages = ['matplotlib', 'numpy']
Loading...
import matplotlib.pyplot as plt import numpy as np from pyscript import display time = np.linspace(0, 2 * np.pi, 100) plt.plot(time, np.sin(time)) display(plt, target="targetDiv") # display(firstvalue = thing to show, secondvalue = to show where)