I'm having trouble running some animations, I would appreciate some help.
I want to use the ListAnimate
to show the results of a Monte Carlo simulation, that I have stored in a data file. I'm trying to show two simultaneous animations in a single plot. I have managed to do this by using Manipulate
and then running the simulation automatically. However, I still feel that that this could be done using ListAnimate
. Any ideas or suggestions as to how this may be possible?
As an example, the specific code I use in Manipulate
is:
Manipulate[
Show[ListLinePlot[data1[[n]], PlotRange -> {0, 10}, Joined -> True],
ListLinePlot[data2[[n]], PlotRange -> {0, 10}, Joined -> True]], {n,
1, 2, 1}]
In this case, the lists have the same number of objects, but they may contain different number of objects, in which case I could just use two variables instead of one, however, running them simultaneously proves to be a problem.
That way I just use the play button on the control options and it runs, that is, it plots both graphs on the same plot and the animation runs. This is fine, however I find that a ListAnimate function would be more suitable for the number of points I have to plot. How could I do this?