1. Not finding help here? Sign up for a free 30min 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!

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:
    \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?

    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.

    Stefan
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Drawing an arrow in LaTeX
  1. Construction drawing (Replies: 2)

  2. Drawing circuits. (Replies: 6)

  3. Engineering Drawing (Replies: 2)

  4. Drawing circuits (Replies: 1)

  5. Technical drawings (Replies: 2)

Loading...