\begin{pspicture}[showgrid](3,3) \psLoop{4}{% \psdots(\the\psLoopIndex,\the\psLoopIndex)} \end{pspicture}