Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica: Animate multiple sets of XY data

  1. Oct 11, 2015 #1
    I have nine sets of data with x,y coords that are the position of a particle. I can ListPlot the particle positions on a single plot, but, I want to animate this.

    ListPlot[{mydata1, mydata2, mydata3, mydata4, mydata5, mydata6, mydata7, mydata8, mydata9}, PlotRange -> {{-1, 20}, {-1, 20}}]

    I have been playing around with ListAnimate and I can get one particle to animate but I can not get the rest.

    ListAnimate[ ListPlot[{#, #}, PlotRange -> {{-1, 20}, {-1, 20}}] & /@ mydata1]

    Is there a way to get all nine particles in the same frame?
  2. jcsd
  3. Oct 16, 2015 #2
    Thanks for the post! This is an automated courtesy bump. Sorry you aren't generating responses at the moment. Do you have any further information, come to any new conclusions or is it possible to reword the post?
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook