[pstricks] plot a sequence of points

azzam.hassan at voila.fr azzam.hassan at voila.fr
Sat Nov 15 17:39:40 CET 2008


Hello all pstrickers
How can one plot a sequence of points using a \multido loop in th case where x's or y's are function of the \multido counter. (without using \plotdata nor \psplot if possible)

Here below an example :
\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*}

Cordialement
Azzam HASSAN
tel : 06 63 82 97 09

____________________________________________________

1 Go d’espace pour stocker et partager photos, vidéos, mp3 et autres documents sur Ma Clé Voila ! http://macle.voila.fr




More information about the PSTricks mailing list