\usepackage {pstcol}
\begin{pspicture}(0,0)(2,1)\showgrid
  \psline[linestyle=dashed](2,1)
\end{pspicture}