share in .gitignore
This commit is contained in:
24
teil23/test.py
Normal file
24
teil23/test.py
Normal file
@@ -0,0 +1,24 @@
|
||||
# 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()
|
Reference in New Issue
Block a user