Message Boards Message Boards

0
|
2886 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

ListAnimate two datafiles at the same time

Posted 9 years ago

Hello,

i want to "ListAnimate" two different graphs in one "ListLinePlot". However, each graph consist of 10 datafiles. Basically i want to extend my approach, which i got for animating one graph, by another graph. Following is my approach for one graph:

ListAnimate[
 ListLinePlot[#1, PlotRange -> {0, 10}] & /@ {data1, data2, data3, 
   data4, data5, data6, data7, data8, data9, data10}]

Now my approach for the additional second graph, which does not work:

ListAnimate[
 ListLinePlot[{#1,#2}, PlotRange -> {0, 10}] & /@ {{data1,data11},{data2,data12}, {data3,data13}, 
   {data4,data14}, {data5,data15}, {data6,data16}, {data7,data17}, {data8,data18}, {data9,data19}, {data10,data20}}]

I would be happy for a hint :) Thank you in advance

POSTED BY: Chris Smith
2 Replies
Posted 9 years ago

Thank you very much! it works just fine :)

POSTED BY: Chris Smith

Try with

ListAnimate[
 ListLinePlot[{#[[1]], #[[2]]}, PlotRange -> {0, 10}] & /@ {{data1, 
    data11}, {data2, data12}, {data3, data13}, {data4, 
    data14}, {data5, data15}, {data6, data16}, {data7, 
    data17}, {data8, data18}, {data9, data19}, {data10, data20}}]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract