From 2a998611bf191f708ee9660224e41f6ac10a305d Mon Sep 17 00:00:00 2001 From: Olli Graf Date: Fri, 5 Jan 2024 05:53:55 +0100 Subject: [PATCH] share in .gitignore --- Readme.md | 5 ++++- teil23/.gitignore | 5 +++++ teil23/pyvenv.cfg | 8 ++++++++ teil23/test.py | 24 ++++++++++++++++++++++++ 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 teil23/.gitignore create mode 100644 teil23/pyvenv.cfg create mode 100644 teil23/test.py diff --git a/Readme.md b/Readme.md index d212bdb..349c3d4 100644 --- a/Readme.md +++ b/Readme.md @@ -25,5 +25,8 @@ CC-BY-SA Olli Graf |18 | Generatoren und list comprehension| |19 | Webseiten (Flask)| |20 | virtuelle Umgebungen| -|21 | Interrupts & Signale| +|22 | Numpy| +|21 | Matplotlib| +|23 | Pandas| + diff --git a/teil23/.gitignore b/teil23/.gitignore new file mode 100644 index 0000000..e18effe --- /dev/null +++ b/teil23/.gitignore @@ -0,0 +1,5 @@ +# created by virtualenv automatically +__pycache__ +bin +lib +share diff --git a/teil23/pyvenv.cfg b/teil23/pyvenv.cfg new file mode 100644 index 0000000..b121c6f --- /dev/null +++ b/teil23/pyvenv.cfg @@ -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 diff --git a/teil23/test.py b/teil23/test.py new file mode 100644 index 0000000..5bd6896 --- /dev/null +++ b/teil23/test.py @@ -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()