pyscriptdemo.html





– matplotlib

import matplotlib.pyplot as plt
x = [i for i in range(100)]
y = [i**2 for i in range(100)]
fig = plt.figure()
plt.plot(x, y)
pyscript.write(‘output’, fig)