I have several sets of data which together yield Fig. 1. As can be seen from the colours of the dots, the data sets are mixed, but do obviously belong to several distinct lines. My question is:
How can I efficiently sort the data sets by their corresponding lines? The structure of my data is just a list of lists of data poinst. E.g.
{
{a1[ω],a2[ω],a3[ω],...},
{b1[ω],b2[ω],b3[ω],...},
...,
{z1[ω],z2[ω],z3[ω],...}
}
The lists are of the same length each (i.e. my data forms a matrix). They should be sorted in such a way that I get e.g.
{
{first point of top line, second point, third point,...},
{first point of second line, second point, third point,...},
{first point of lowest line, second...}
}
However, how the lines themselves are ordered is not important.
Fig. 2 is another example of a plot with much more points.
It is not important that it works well close to zero where all the lines meet.
(This problem has probably already been solved, but I was unable to find the solution.)