[pstricks] Returing arrow

Herbert Voss Herbert.Voss at FU-Berlin.DE
Mon Oct 27 22:01:44 CET 2008


Andreas Gising schrieb:

> I need to make an arrow returning to the same box it comes from. I would
> also like to apply a label to that arrow.
> 
> I have a \psidiabox representing a 'wait'-function.
> \ncline lookes like crap, because it makes an arrow straight across the box,
> and \ncbar does not allow labeling?
> Suggestions?
> 
>     \psset{shadowcolor=black!70}%
>     \begin{psmatrix}[rowsep=0.5,colsep=0]
>         \label{flow:sync}
>         \psovalbox[fillstyle=solid,fillcolor=blue]{Start} \\
>         \psframebox[shadow=true]{Start reception cycle and counter} \\
>         \psdiabox[fillstyle=solid, fillcolor=blue]{Counter = 70ms ?} \\
> 
>         \psframebox[shadow=true]{Collect results} \\
>         \psframebox[shadow=true]{Start new reception cycle and restart
> counter} \\
>         \psdiabox[fillstyle=solid,fillcolor=blue]{Received a pulse?} &
>         \psframebox[shadow=true]{Out of sync, counter += $\delta$} \\
>         \psdiabox[fillstyle=solid, fillcolor=blue]{Counter = 70ms ?} \\
>         \psframebox[shadow=true]{Collect results} \\
>         \psframebox[shadow=true]{Start new reception cycle and restart
> counter} \\
>         \psdiabox[fillstyle=solid,fillcolor=blue]{Received a pulse?} &
>         \psframebox[shadow=true]{Out of sync, Counter += $\delta$}\\
>         \psframebox[shadow=true]{Sync is OK, tune} \\
>         \psdiabox[fillstyle=solid, fillcolor=blue]{Need tuning?} \\
>         \psframebox[shadow=true]{Counter $\pm=\frac{\delta}{4}$} \\
>         &\psframebox[fillstyle=solid, fillcolor=green, shadow=true]{Tuning
> is good}
>         % Links
>         \ncline{->}{1,1}{2,1}
>         \ncline{->}{2,1}{3,1}
>         \ncline{->}{3,1}{3,1}  % Not looking good..

\ncloop[angleB=180,loopsize=7mm]{->}{3,1}{3,1}
\ncput[npos=1.6]{label}\ncput*[npos=2.9]{also}


Herbert


More information about the PSTricks mailing list