How can I have the line plot, with the data coming one by one? I have the code
import matplotlib.pyplot as plt
plt.ion()
plt.plot(1, 2)
plt.pause(2.5)
plt.plot(2, 5)
plt.pause(2.5)
but it does not show the line, if I add 'o' option in plot function or change the plot function to scatter function, it works fine, But I want a line with no markers, how can I do this?
plotcalls, two "lines" with a single point each, so if you don't have any markers, it's invisible to the eye. Add your data to lists for x and y instead and plot those.