\usepackage {pstricks} \begin{pspicture}(-.2,-.5)(3,1)\showgrid \cnode(.5,.5){.2}{A} \cnode(2.5,.5){.2}{B} \ncline{A}{B} \end{pspicture}