Animation 在Mathematica中为图表上的列表设置动画?

Animation 在Mathematica中为图表上的列表设置动画?,animation,wolfram-mathematica,Animation,Wolfram Mathematica,我有一个坐标矩阵(X,Y),我想通过逐点绘制并连接点来设置它们的动画。我尝试了“ListAnimate”,但它只为每个坐标的值设置动画 以下是示例的外观: {{1,1}, {1,2}, {5,4},...} 可能是 可能是 只是一个说明性的回答。以下所有操作也会执行相同的操作: 只是一个说明性的回答。以下所有操作也会执行相同的操作: max = 10; coords = Table[{i, RandomReal[]}, {i, max}]; Animate[ListPlot[co

我有一个坐标矩阵(X,Y),我想通过逐点绘制并连接点来设置它们的动画。我尝试了“ListAnimate”,但它只为每个坐标的值设置动画

以下是示例的外观:

{{1,1},
{1,2},
{5,4},...}
可能是

可能是


只是一个说明性的回答。以下所有操作也会执行相同的操作:





只是一个说明性的回答。以下所有操作也会执行相同的操作:




max = 10;
coords = Table[{i, RandomReal[]}, {i, max}];

Animate[ListPlot[coords[[1 ;; n]], PlotMarkers -> {Automatic, Small}, 
  Joined -> True, PlotRange -> {{0, max}, {0, 1}}], {n, 1, max, 1}]
max = 10;
coords = Table[{i, RandomReal[]}, {i, max}];
p = PlotRange -> {{0, max}, {0, 1}};


Animate[
 ListLinePlot[coords[[1 ;; n]],   Mesh -> All, p],
{n, Range@max}]
Animate[
  Graphics[{Point@#, Line@#}, p, Axes -> True] &@coords[[1 ;; n]], 
{n, Range@max}]
Animate[
 Graphics[{ Red,   Point[#], 
            Black, BSplineCurve[#, SplineDegree -> 1]}, p] &@coords[[1 ;; n]],
{n, Range@max}]