Olli Graf
11 months ago
4 changed files with 41 additions and 1 deletions
@ -0,0 +1,5 @@ |
|||
# created by virtualenv automatically |
|||
__pycache__ |
|||
bin |
|||
lib |
|||
share |
@ -0,0 +1,8 @@ |
|||
home = /usr/bin |
|||
implementation = CPython |
|||
version_info = 3.11.2.final.0 |
|||
virtualenv = 20.17.1+ds |
|||
include-system-site-packages = false |
|||
base-prefix = /usr |
|||
base-exec-prefix = /usr |
|||
base-executable = /usr/bin/python3 |
@ -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() |
Loading…
Reference in new issue