[pstricks] plot a sequence of points
azzam.hassan at voila.fr
azzam.hassan at voila.fr
Sat Nov 15 20:57:32 CET 2008
Michael Thanks it works very well
> Message du 15/11/08 à 18h21
> De : "Michael Sharpe" <msharpe at ucsd.edu>
> A : azzam.hassan at voila.fr, "Graphics with PSTricks" <pstricks at tug.org>
> Copie à : "Michael Sharpe" <msharpe at ucsd.edu>
> Objet : Re: [pstricks] plot a sequence of points
>
>
> 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*}
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
>
Cordialement
Azzam HASSAN
____________________________________________________
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