The following examples use the PyScript framework.
Environment: Matplotlib
Beispiel 1: Plotten mit Matplotlib
packages = ["matplotlib"]
# Plot.py
# Python-Script zur Veranschaulichung des Plottens mit Matplotlib
# Einbinden von Bibliotheken
import matplotlib
import matplotlib.pyplot as plt
# Parameter
x = [-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5]
y = [i**2 for i in x]
# Plotten
plt.plot(x,y)
plt
<