[pstricks] [Fwd: Re: Adding arrow heads to a line]
Herbert Voss
herbert49 at googlemail.com
Sat Jun 16 08:40:50 CEST 2007
-------- Original Message --------
Subject: Re: Adding arrow heads to a line
Date: Sat, 16 Jun 2007 00:01:05 +0200
From: Herbert Voss <herbert49 at googlemail.com>
Organization: T-Online
Newsgroups: comp.text.tex
References: <5depf9F34kc32U1 at mid.individual.net>
Konrad Viltersten wrote:
> Getting metric tons of help, i managed to create the
> code below only to realize that the curve doesn't
> really depicts a movement (which it should, since it's
> a particle circulating). Any nice hints on how to add
> the notion/impression of movement?
>
> \begin{pspicture}[showgrid=true](0, 0)(10, 10)
> \rput[lb](0,0){%
> \begin{pspicture}(-5,-5) (5,5)
> \parametricplot[linecolor=CadetBlue2, linewidth=0.5mm,
> plotstyle=ccurve]
> {0}{360}{t sin 4.9 mul t 2 mul sin 3 mul 1.6 mul}
> \psaxes[ticks=none]{<->}(0,0)(-1.2,-1.2) (1.2,1.2)
> \end{pspicture}}
> \end{pspicture}
>
> For fully full, compilable source code, see below.
\listfiles
\documentclass[a4paper,10pt,ngerman]{article}
\usepackage[T1]{fontenc}
\usepackage[x11names]{pstricks}
\usepackage{pstricks-add}
\usepackage{multido}
\begin{document}
\begin{pspicture}[showgrid=true](-5,-5) (5,5)
\parametricplot[linecolor=CadetBlue4, linewidth=0.5mm, plotstyle=ccurve]
{0}{360}{t sin 4.9 mul t 2 mul sin 3 mul 1.6 mul}
\psaxes[ticks=none]{<->}(0,0)(-1.2,-1.2) (1.2,1.2)
\multido{\iA=30+45}{8}{%
\parametricplot[linecolor=CadetBlue4, linewidth=0.5mm,
arrows=->,arrowscale=2]{\iA}{\iA\space 3 add}
{t sin 4.9 mul t 2 mul sin 3 mul 1.6 mul}}
\end{pspicture}
\end{document}
Herbert
--
http://PSTricks.tug.org
http://tug.org/CTAN/info/math/voss/
More information about the PSTricks
mailing list