[pstricks] Returing arrow
Andreas Gising
a.gising at gmail.com
Mon Oct 27 10:13:25 CET 2008
Hello!
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..
\ncline{->}{3,1}{4,1}>{\textcolor{green}{Yes}}
\ncline{->}{4,1}{5,1}
\ncline{->}{5,1}{6,1}
\ncline{->}{6,1}{6,2}^{\textcolor{red}{No}}
\ncbar[angleA=0, armB=6, nodesepB=0]{->}{6,2}{3,1}
\ncline{->}{6,1}{7,1}>{\textcolor{green}{Yes}}
\ncline{->}{7,1}{8,1}>{\textcolor{green}{Yes}}
\ncline{->}{8,1}{9,1}
\ncline{->}{9,1}{10,1}
\ncline{->}{10,1}{10,2}^{\textcolor{red}{No}}
\ncbar[angleA=0, armB=6.5, nodesepB=0]{->}{10,2}{3,1}
\ncline{->}{10,1}{11,1}>{\textcolor{green}{Yes}}
\ncline{->}{11,1}{12,1}
\ncline{->}{12,1}{13,1}<{\textcolor{green}{Yes}}
\ncline{->}{12,1}{14,2}>{\textcolor{red}{No}}
\ncbar[angleA=180, armB=2.5, nodesepB=0]{->}{13,1}{7,1}
\ncbar[angleA=180, armB=3, nodesepB=0]{->}{14,2}{7,1}
\end{psmatrix}
Regards, Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20081027/580d28e8/attachment.html
More information about the PSTricks
mailing list