# Diagonal arrows/vectors not working

For some reason I can't get diagonal arrows/vectors to work. Only the arrowhead shows up - the line is missing. For example, in the following, the first vector is fine (horizontal) but the second just gives a floating arrowhead.

\setlength{\unitlength}{1mm}
\begin{picture}(60, 40)
\put(30, 20){\vector(1, 0){30}}
\put(30, 20){\vector(4, 1){20}}
\end{picture}


I've tried using \thicklines, \thinlines, doesn't make a difference.

I'm using MiKTeX 2.9 with TeXnicCenter.

-
As I said to your crosspost on LaTeX-Communtity.org, the code snippet is working and shows lines. Perhaps provide a complete example which show the undesired behavior. –  Stefan Kottwitz Mar 4 '12 at 22:34
Hi Mark, Welcome to TeX.sx! I've removed the thanks. It's just the style here. Thanks is best expressed in the up voting of answers that are helpful. –  qubyte Mar 5 '12 at 4:48
If you are just starting out with drawing pictures, I would highly recommend looking at tikz. For example: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[thick, -latex] \draw[red] (0,0) -- (4,0); \draw[blue] (0,0) -- (3,1); \end{tikzpicture} \end{document} –  Peter Grill Mar 5 '12 at 15:57

You could load the pict2e package. It extends the existing LaTeX picture environment using driver files and solves the issue with limited slope values for lines and vectors.