<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br><div><div>On Dec 29, 2008, at 11:55 AM, Juergen Gilg wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> Dear David,<br> <br> couldn't solve the problem with 2 arrowhead at the end of the lines drawn, however the rest should work fine.<br> <blockquote cite="mid:75312BDB-3C9E-4889-BB03-F935A656FE73@suddenlink.net" type="cite"> <pre wrap="">Looking for ideas.
</pre> </blockquote> <pre class="moz-signature" cols="65"><font color="#003300">\documentclass{article}
\usepackage{pstricks,pstricks-add}
\begin{document}
\pagestyle{empty}
\newcommand{\DaveArnold}[4]{%
\psset{unit=0.5}
\begin{pspicture}(-6,-6)(6,6)
\psgrid[gridcolor=lightgray,gridlabels=0pt,subgriddiv=1](0,0)(-5,-5)(5,5)
\psaxes[labels=none,ticks=none]{->}(0,0)(-5.5,-5.5)(5.5,5.5)
\Cnode[radius=0.1cm,fillstyle=solid,fillcolor=blue,linecolor=blue](#1,#2){A}
\Cnode[radius=0.1cm,fillstyle=solid,fillcolor=blue,linecolor=blue](#3,#4){B}
\psclip{\psframe[linestyle=none](-5,-5)(5,5)}
\ncline[nodesep=10cm,linecolor=blue]{<->}{A}{B}
\endpsclip
\uput[0](5.5,0){$x$}
\uput[90](0,5.5){$y$}
\end{pspicture}
\resetOptions
}
\DaveArnold{1}{2}{-3}{5}
%First Argument x-Koordinate Point A
%Second Argument y-Koordinate Point A
%Third Argument x-Koordinate Point B
%Fourth Argument y-Koordinate Point B
\DaveArnold{-1}{-2}{3}{3}
\DaveArnold{-5}{-5}{1}{2}
%NO PROBLEM to so produce vertical and horizontal lines as well.
\end{document} </font>
</pre> <br> Regards,<br> <br> Juergen<br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">PSTricks mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:PSTricks@tug.org">PSTricks@tug.org</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://tug.org/mailman/listinfo/pstricks">http://tug.org/mailman/listinfo/pstricks</a></div> </blockquote></div><br></div></body></html>