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.
24 lines
358 B
24 lines
358 B
# 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()
|
|
|