I have some y values in a string like 1124,2113,4563. Then I have extracted individual values from the strings like,
1124=> 1,1,2,4
2113=> 2,1,1,3
4563=> 4,5,6,3
These are all my y values and corresponding x values are 5 increments for each y like,
1124 =>(0,1),(5,1),(10,2),(15,4)
2113 =>(0,2),(5,1),(10,1),(15,3)
4563 =>(0,4),(5,5),(10,6),(15,3)
My target is to draw 3 different series of lines from the given values. I have 2000 strings and converted them to a list like following
list = [(0,1),(5,1),(10,2),(15,4),(0,2),(5,1),(10,1),(15,3),(0,4),(5,5),(10,6),(15,3)]
Now is it possible to draw the lines from this data or what do? expert advise needed. I have tried drawing with the following code
plt.scatter(*zip(*list))
plt.plot(*zip(*list))
this code continues to connect the last point to the next point thus I am not getting different lines. all lines are getting interconnected. Here is an image what I am getting