I am new to Mathematica, and I am trying to plot a sequence of 2D points so that the resulting video shows 1, then 2, then 3, ... points on the screen. Here is a simple minded version of what I am trying to do. It plots the first 3 points of the 20 points of an ellipse:
tab = Table[{4 Cos[t], 2 Sin[t]}, {t, 0, 2 \[Pi], 2 \[Pi]/20}];
pointTable = Table[Point[tab[[i]]], {i, 1, 20}];
Row[
Show[Graphics[pointTable[[1]], PlotRange -> {{-5, 5}, {-3, 3}},
Axes -> True, Ticks -> None]],
Show[Graphics[pointTable[[1 ;; 2]], PlotRange -> {{-5, 5}, {-3, 3}},
Axes -> True, Ticks -> None]],
Show[Graphics[pointTable[[1 ;; 3]], PlotRange -> {{-5, 5}, {-3, 3}},
Axes -> True, Ticks -> None]]
]
I haven't been able to use Do, or While or any other "loop" to generate an arbitrary number of points. I'll be most grateful for any help.



ListAnimatefunction as well. – Syed Jan 07 '23 at 05:58