I am trying to plot multiple graphs in one diagram. I am planning to do it with a for loop.
x = df1['mrwSmpVWi']
c = df['c']
a = df['a']
b = df['b']
y = (c / (1 + (a) * np.exp(-b*(x))))
for number in df.Seriennummer:
plt.plot(x,y, linewidth = 4)
plt.title("TEST")
plt.xlabel('Wind in m/s')
plt.ylabel('Leistung in kWh')
plt.xlim(0,25)
plt.ylim(0,1900)
plt.show()
The calculation doesn't work I just get dots in the diagram and I get 3 different diagrams.
This is the df:
Seriennummer c a b
0 701085 1526 256 0.597
1 701086 1193 271 0.659
2 701087 1266 217 0.607
Does someone know what I did wrong? [![enter image description here][1]][1]
Df1 has about 500,000 rows. This is a part of df1:
Seriennummer mrwSmpVWi mrwSmpP
422 701087.0 2.9 25.0
423 701090.0 3.9 56.0
424 701088.0 3.2 22.0
425 701086.0 4.0 49.0
426 701092.0 3.7 46.0
427 701089.0 3.3 0.0
428 701085.0 2.4 4.0
429 701091.0 3.6 40.0
430 701087.0 2.7 11.0
431 701090.0 3.1 23.0
432 701086.0 3.6 35.0
The expected output schould be a diagram with multiple logitic graphs. Something like that: [![enter image description here][2]][2]
EDIT: