Alle Dateien aus dem Pythonkurs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
358 B

11 months ago
# encoding: utf-8
import numpy as np
import matplotlib.pyplot as plt
# Koordinaten
x = np.arange(5, 10)
y = np.arange(12, 17)
print(f'x={x}')
print(f'y={y}')
# Plot
plt.plot(x,y)
# Titel hinzufügen
plt.title("Matplotlib PLot NumPy Array")
# Beschriftung für die Achsen
plt.xlabel("x Achse")
plt.ylabel("y Achse")
# Fenster anzeigen
plt.show()