I am making a program that reads time values and readings from a .txt file and plots them on a web-page with matplotlib. In my case there are lots of values, and the plot can look very confusing, and with thousands of data points it can also be sluggish.
I am currently reading the .txt lines with this code to put the values into plottable lists:
with open('C:/Email/file.txt') as f:
lines = f.readlines()
dates = [str(line.split(';')[0]) for line in lines]
y = [float(line.split(';')[1]) for line in lines]
z = [float(line.split()[2]) for line in lines]
The .txt file content looks like this:
30.05.18_12:27:17; 13.0; -0.0
30.05.18_12:27:18; 14.0; -0.0
30.05.18_12:27:19; 15.0; -0.0
30.05.18_12:27:20; 16.0; -0.0
So, is there any way to read and plot every