import matplotlib.pyplot as plt data = [] while True: try: data.append(list(map(float, input().split()))) except: break #print(list(zip(*data))) for i in list(zip(*data)): plt.plot(i) plt.show()