Browse Source

share in .gitignore

master
Olli Graf 10 months ago
parent
commit
2a998611bf
  1. 5
      Readme.md
  2. 5
      teil23/.gitignore
  3. 8
      teil23/pyvenv.cfg
  4. 24
      teil23/test.py

5
Readme.md

@ -25,5 +25,8 @@ CC-BY-SA Olli Graf
|18 | Generatoren und list comprehension| |18 | Generatoren und list comprehension|
|19 | Webseiten (Flask)| |19 | Webseiten (Flask)|
|20 | virtuelle Umgebungen| |20 | virtuelle Umgebungen|
|21 | Interrupts & Signale| |22 | Numpy|
|21 | Matplotlib|
|23 | Pandas|

5
teil23/.gitignore

@ -0,0 +1,5 @@
# created by virtualenv automatically
__pycache__
bin
lib
share

8
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

24
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()
Loading…
Cancel
Save