I am trying to use plt.scatter to generate multiple points and I want to connect each point with the previous one. For my x-axes I need to use the format time.time() or something that will allow me to draw points each second.
I tried to use plt.plot(), but that will result in changes I don't need.
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import time
ts = time.time()
kraft = 2300
for i in range(10):
ts1 = ts + i
kraft1 = kraft + i
plt.scatter(ts1, kraft1)
plt.show()
I expect to have multiple points connected to the former point.
Thanks for you answers.