Why is the following code not plotting the set of points from {1,1} to {10,10} ?
For[i = 1, i <= 10, i++, Graphics[Point[{i, i}]]]
Why is the following code not plotting the set of points from {1,1} to {10,10} ?
For[i = 1, i <= 10, i++, Graphics[Point[{i, i}]]]
Graphics[Table[Point[{i, i}], {i, 10}]]
If you want to see the output of your command, modify it a little:
For[i = 1, i <= 10, i++, Print@Framed@Graphics[Point[{i, i}]]]
You will see ten graphics, one point in each one
Graphics[Point@Table[{i, i}, {i, 10}]]
$\endgroup$
i
random points (For
seems like a good idea when a number of loop repetitions is known) and then plotting them. Could you give me a hint about this?
$\endgroup$
Table
form) inside the Graphics
$\endgroup$
Commented
Sep 11, 2012 at 21:46
Graphics[Point@RandomReal[1, {100, 2}]]
?
$\endgroup$
ListPlot[Table[{RandomReal[{startRange, endRange}], RandomReal[{min, max}]}, {pointsCount}]]
. Thanks
$\endgroup$