Moritz lutz einfach der nacken
parent
f76c83b832
commit
f633d731b4
18
python.py
18
python.py
|
@ -2,22 +2,14 @@ import numpy as np
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import seaborn as sns
|
import seaborn as sns
|
||||||
|
|
||||||
x = np.linspace(0, 10, 50)
|
|
||||||
y1 = np.power(x,2)
|
|
||||||
y2 = np.power(x,3)
|
|
||||||
plt.plot (x,y1)
|
|
||||||
plt.plot (x,y2)
|
|
||||||
|
|
||||||
plt.xlim((1,5))
|
|
||||||
plt.ylim((0,30))
|
|
||||||
plt.tight_layout()
|
|
||||||
plt.xlabel('x')
|
|
||||||
plt.ylabel('y')
|
|
||||||
|
|
||||||
plt.title('ChatGpt seine Lernkurve')
|
plt.title('ChatGpt seine Lernkurve')
|
||||||
|
|
||||||
plt.legend()
|
a = np.random.random((100,100))
|
||||||
|
|
||||||
|
plt.imshow(a)
|
||||||
|
|
||||||
|
plt.hot()
|
||||||
|
|
||||||
|
plt.colorbar()
|
||||||
|
|
||||||
plt.show()
|
plt.show()
|
Loading…
Reference in New Issue