import matplotlib.pyplot as plt
f = open("data.txt", 'r')
mes = []
cnt = 0
while True:
line = f.readline()
fit = line[1:-1].split('\t')
for i in range(len(fit)):
# add more here
if fit == ':':
fit[cnt:] = list(map(int, fit))
else:
cnt = cnt + 1
if not line: break
# print(fit)
data = {}
data[fit[0]] = ', '.join(fit[1:])
plt.plot()
print(data)
mes.append(data)
f.close()
for i in range(len(mes)):
print(mes[i])
plt.show()
# import matplotlib.pyplot as plt
# plt.plot([10, 20, 30])
# plt.plot([50, 40, 10])
# plt.show()