Code: Alles auswählen
fig = plt.figure()
ax1 = fig.add_subplot(1,1,1)
def func(i):
xs = []
ys = []
i = 1
x = 0
while i < 10:
a = getAnalogData(CH, CLK, DIN, DOUT, CS) # Gibt mir den Spannungswert zurück
xs.append(x)
ys.append(a)
x = x + 0
i = i + 1
ax1.clear()
ax1.plot(xs,ys)
ani = animation.FuncAnimation(fig,rusb, interval = 500)
plt.show()
Hat jemand einen Codebeispiel woran ich mich orientieren könnte?