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