1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Drawing an arrow in LaTeX

  1. Mar 18, 2012 #1
    1. The problem statement, all variables and given/known data

    I have 2 graphs in latex, side by side, that were attached using:
    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:

    \draw[dashed, o->] (2,4) -- (10,4);

    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?

    Thank you in advance.
  2. jcsd
  3. Jun 24, 2012 #2
    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.

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook