Bon*_*onk 1 animation wolfram-mathematica
我有一个坐标矩阵(X,Y),我想通过逐点绘制并连接点来为它们设置动画。我试过“ListAnimate”,但它只对每个坐标的值进行动画处理。
这是示例的外观:
{{1,1},
{1,2},
{5,4},...}
Run Code Online (Sandbox Code Playgroud)
或许
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}]
Run Code Online (Sandbox Code Playgroud)