I have two data lists and would like to plot them versus each other.
list1 = Get["http://pastebin.com/raw/Y9FFBzV5"];
list2 = Get["http://pastebin.com/raw/UjWXjgEL"];
The problem is they are of different length:
Dimensions[list1]
{4882}
Dimensions[list2]
{1392}
I would like to "stretch" list2
to the same length as list1
, so that missing data should be interpolated.
UPDATE:
In the plot the minimum point should be {list1[[1]],list2[[1]]}
. The maximum point should be (after data processing of list2
): {list1[[4882]],list2[[4882]]}
What do I have to do?
ListLinePlot[{list1, list2}, DataRange -> {0, 100}]
, seeDataRange
$\endgroup$list1
correspond to terminal points oflist2
$\endgroup$list1
as the horizontal axes andlist2
as vertical axis. $\endgroup$ListLinePlot[Thread[{list1, ArrayResample[list2, Length@list1]}]]
$\endgroup$