It seems there are many similar questions on Mathematica.SE, but none addresses (to the best of google) exactly my problem. I have the following data:
L[1] =
{{0.0200, {-3.98, -0.902}}, {0.120, {-3.97, -0.890}}, {0.220, {-3.94, -0.860}},
{0.320, {-3.89, -0.811}}, {0.420, {-3.82, -0.744}},{0.520, {-3.71, -0.659}},
{0.620, {-3.55, -0.554}}, {0.720, {-3.32, -0.429}}, {0.820, {-2.97, -0.285}},
{0.920, {-0.119}}, {1.02, {0.0666}}, {1.12, {0.272}}, {1.22, {0.497}}, {1.32, {0.740}},
{1.42,{1.00, 3.30}}, {1.52, {1.28, 3.68}}, {1.62, {1.58, 4.04}}, {1.72, {1.89, 4.41}},
{1.82, {2.23, 4.79}}, {1.92, {2.57,5.18}}, {2.02, {2.90, 5.58}}, {2.12, {3.38,6.00}},
{2.22, {3.90, 6.43}}, {2.32, {4.44, 6.88}}, {2.42, {5.00,7.35}}, {2.52, {5.57, 7.84}},
{2.62, {6.15,8.35}}, {2.72, {6.75, 8.87}}, {2.82, {7.36, 9.42}}, {2.92, {7.99,9.98}}};
L[2] =
{{0.0200, {0.377, 0.579}}, {0.120, {0.373,0.580}}, {0.220, {0.360, 0.582}},
{0.320, {0.340, 0.585}}, {0.420, {0.334, 0.590}}, {0.520, {0.331,0.596}},
{0.620, {0.336, 0.604}}, {0.720, {0.369,0.613}}, {0.820, {0.501,0.623}},
{0.920,{0.632}}, {1.02, {0.638}}, {1.12, {0.638}},{1.22, {0.635}}, {1.32, {0.629}},
{1.42, {0.622,0.974}}, {1.52, {0.614, 0.944}}, {1.62, {0.601, 0.933}},
{1.72, {0.581, 0.929}}, {1.82, {0.545, 0.933}}, {1.92, {0.472, 0.937}},
{2.02, {0.400, 0.936}}, {2.12, {0.864, 0.934}}, {2.22, {0.889, 0.941}},
{2.32, {0.903, 0.945}}, {2.42, {0.916, 0.949}}, {2.52, {0.929, 0.958}},
{2.62, {0.934, 0.958}}, {2.72, {0.935, 0.949}}, {2.82, {0.943, 0.960}},
{2.92, {0.941, 0.955}}};
L[3] =
{{0.0200, {0, 0.0669}}, {0.120, {0, 0.0649}}, {0.220, {0,0.0601}},
{0.320, {0.00730, 0.0528}}, {0.420, {0.0350, 0.0439}},
{0.520, {0.0816, 0.0339}},{0.620, {0.155,0.0237}},
{0.720, {0.297, 0.0141}}, {0.820, {0.727, 0.00620}}, {0.920, {0.00110}},
{1.02, {0.000300}}, {1.12,{0.00460}}, {1.22, {0.0130}}, {1.32, {0.0247}},
{1.42, {0.0395,2.93}}, {1.52, {0.0578, 2.57}}, {1.62, {0.0776, 2.38}},
{1.72, {0.0977, 2.26}}, {1.82, {0.115, 2.18}}, {1.92, {0.123, 2.12}},
{2.02, {0.135, 2.06}}, {2.12, {0.543, 2.01}}, {2.22, {0.697, 1.97}},
{2.32, {0.806,1.94}}, {2.42, {0.891,1.91}}, {2.52, {0.961, 1.90}}, {2.62,
{1.01,1.86}}, {2.72, {1.05, 1.82}}, {2.82, {1.08, 1.81}}, {2.92, {1.10,1.77}}};
It is having the following structure
Row[MatrixForm /@ {L[1], L[2], L[3]}]
That is we have $3$ ragged arrays. Let us plot them:
Do[
l[i] = Flatten[Table[Table[{a[[1]], b}, {b, a[[2]]}], {a, L[i]}], 1];
gr[i] =
ListPlot[
l[i], PlotRange -> {{0, 3}, All},
PlotMarkers -> {Graphics@{Black, Disk[]}, 0.02},
FrameLabel -> {"x", "\[CapitalDelta][" <>ToString[i] <> "]"},
Axes -> False, Frame -> True,
LabelStyle -> Directive[FontFamily -> "Helvetica", FontSize -> 14],
PlotStyle -> Black],
{i, 3}]
GraphicsRow[{gr[1], gr[2], gr[3]}, ImageSize -> Full]
These three panels describe 3 different properties of a physical system as a function of one parameter. On each panel there are $3$ curves.
My question is how to connect points belonging to each of $3$ curves. It is certainly possible to edit plots in e.g. adobe illustrator however I am more curios to properly extract the data corresponding to each curve so the parametric plots, e.g., $\Delta[2] (\Delta[1])$ can be created for each curve.
Just to avoid suggestions like Joined -> True
or ListLinePlot[]
, this is not the expected result:
Reformulation
Imagine you observe 3 animals in the forrest (rabbit, wolf, fox) as a function of time $(x)$. They have 3 properties (L[1]
- smell, L[2]
- sound, L[3]
- look). Not all animals are close enough to the detector, sometimes detectors register 1, sometimes 2 animals at a time.
The question is:
- (i) to separate signals belonging to the rabbit, wolf and fox and
- (ii) to plot the "sound" as a function of "smell" for each of them.
Clarification
As you can see, second columns of data L[1]
, L[2]
, and L[3]
are lists. In fact they are ordered lists, and the ordering is the same for L[1]
, L[2]
, and L[3]
. For instance, have a look at the first raw:
{-3.98, -0.902} {0.377, 0.579} {0, 0.0669}
It is known that {-3.98, 0.377, 0}
belong to one group and { -0.902, 0.579, 0.0669}
to another.
Expected result
There are several very nice answers below. I really appreciate! In order to clarify what exactly I am expecting I re-colored points on the plots manually.
I think the right approach would be to use information from all sets.