[pstricks] sequence of interval
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Mon Feb 7 15:21:48 CET 2011
Am 07.02.2011 13:59, schrieb Andrzej J. Maciejewski:
> Hi, assume that you have two curves given parametrically: t->(bx(t),by(t))
> and t->(ex(t),ey(t)).
> I want to draw lines:
> psline(bx(t),by(t))(ex(t),ey(t))
> changing t in a loop.
that is only possible with PostScript notation:
\documentclass{article}
\usepackage{pst-plot,multido}
\SpecialCoor
\begin{document}
\begin{pspicture}(-1,-1)(5,5)
\psaxes[ticksize=0 -4pt]{->}(5,5)
\psparametricplot[algebraic,linewidth=1.5pt,linecolor=blue]{0}{5}{2*sqrt(t)|sin(t)+t}
\psparametricplot[algebraic,linewidth=1.5pt,linecolor=red]{0}{5}{2*sqrt(t)|cos(t)+t}
\multido{\rA=0.0+0.25}{20}{%
\psline{<->}(!2 \rA\space sqrt mul
\rA\space RadtoDeg sin \rA\space add)
(!2 \rA\space sqrt mul
\rA\space RadtoDeg cos \rA\space add)}
\end{pspicture}
\end{document}
Herbert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zzzz.png
Type: image/png
Size: 7629 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20110207/0330a262/attachment.png>
More information about the PSTricks
mailing list