# Drawing an arrow in LaTeX

1. Mar 18, 2012

### sara_87

1. The problem statement, all variables and given/known data

I have 2 graphs in latex, side by side, that were attached using:
\includegraphics
I want to draw an arrow going from the middle of the first graph to the middle of the second graph.

2. Relevant equations

3. The attempt at a solution
I tried using the tikz package:

\begin{tikzpicture}
\draw[dashed, o->] (2,4) -- (10,4);
\end{tikzpicture}

but this doesn't draw the arrow ON the graph. I want an arrow to be literally on the graph pointing to the graph next to it.

Does anyone have any ideas how to do this?

2. Jun 24, 2012

### Stefan_K

Hi Sara,

use the overlay option to draw on the graph:

Code (Text):
\tikz[overlay,remember picture] {
\draw[dashed, o->] (2,4) -- (10,4);
}
or draw the arrow within the graph picture itself. Btw. you can find many TikZ examples, also with overlays, on TeXample.net in the TikZ gallery. If you show a compilable example containing your graph, I can show you how to place the desired arrow there.

Stefan