I have data file say data.txt as,
1 10
2 20
3 30
4 41
5 49
1 11
2 19
3 32
4 37
5 52
Note there are two set of data. I want to plot them in same graph. In gnuplot it is very simple we just have to run plot 'data.txt' with line and we will get a graph like this,

Actually I have 50 such set in the same data file. I have just started learning python. I want to plot this data file using numpy and matplotlib.
There are similar threads in this forum like,
How to plot data from multiple two column text files with legends in Matplotlib?
How can you plot data from a .txt file using matplotlib?
but I could not find anything similar to my issue.