6

enter image description herein this simple example the arrow head is not drawn. I don't know why. My pgf version is 2.10.

\begin{tikzpicture}
    \draw[line width=0.1pt,gray!30]
    (0,0) grid (4,3);
    \draw[fill=black] (1,2) circle (2pt) coordinate(a)
                      node[above left]{$1$}
                      -- ++(0,-1) circle (2pt) coordinate(b) 
                      node[below left]{$2$}
                      -- ++(1,0) circle (2pt)
                      node[below left]{$3$}
                      -- ++(1,0) circle (2pt)
                      node[below left]{$4$};
   \draw[dashed,->] (b) -- ++(1,1);
  \end{tikzpicture}
ywx
  • 63

1 Answers1

5

Consider also using a bigger arrow tip as >=latex:

\documentclass[12pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}

\begin{tikzpicture}[scale=1.5, >=latex]
    \draw[line width=0.1pt,gray!30]
    (0,0) grid (4,3);
    \draw[fill=black] (1,2) circle (.7pt) coordinate(a)
                      node[above left]{$1$}
                      -- ++(0,-1) circle (.7pt) coordinate(b) 
                      node[below left]{$2$}
                      -- ++(1,0) circle (.7pt)
                      node[below left]{$3$}
                      -- ++(1,0) circle (.7pt)
                      node[below left]{$4$};
   \draw[dashed,->] (b) -- ++(1,1);
  \end{tikzpicture}

\end{document}

enter image description here

There is also the advanced arrows.meta library if one is interested in more adjustments. The library has virtually endless parameters to play with. For example, you can adjust length, width, inset, slope ..etc

See section 16.3.1 of the documentation for more details.

AboAmmar
  • 46,352
  • 4
  • 58
  • 127
  • I'm also looking at this: http://tex.stackexchange.com/questions/5461/is-it-possible-to-change-the-size-of-an-arrowhead-in-tikz-pgf – ywx Jul 14 '15 at 18:10
  • 1
    arrows.meta is not the advanced library by the way. arrows is deprecated (but still supported for those who want to use it) and the standard library is now arrows.meta. – Alenanno Jul 14 '15 at 20:41