# [pstricks] plot a sequence of points

Michael Sharpe msharpe at ucsd.edu
Sat Nov 15 18:16:22 CET 2008

You have to give the coordinates for \psdot in a form understood by
the \SpecialCoor parser and by PostScript. (Remember that TeX eats the
space after \n.)

\SpecialCoor
\psset{yunit=.5cm}
% \def\yn{\n 2.5 mul .5 add}% example of the ordinate function
\begin{pspicture*}(-3,-6)(5,6)
\psaxes{->}(0,0)(-3,-6)(5,6)
\multido{\n=-3+1}{6}{
\psplot[linecolor=red,algebraic=true,plotpoints=100]{-3}{5}{(\n*(1+x*x)
+1)/(x)}
\psdot(!2 \n\space 2.5 mul .5 add)% abscissa and ordinates are
function pf
}
\end{pspicture*}

Michael

On Nov 15, 2008, at 8:39 AM, azzam.hassan at voila.fr wrote:

> \psset{yunit=.5cm}
>  \def\yn{\n 2.5 mul .5 add}% example of the ordinate function
> \begin{pspicture*}(-3,-6)(5,6)
>  \psaxes{->}(0,0)(-3,-6)(5,6)
>  \multido{\n=-3.+1}{6}{
> \psplot[linecolor=red,algebraic=true,plotpoints=400]{-3}{5}
> {(\n*(1+x*x)+1)/(x)}
> \psdot(2,\yn)% abscissa and ordinates are function pf
> }
> \end{pspicture*}