5

This is the first time I'm using Latex to draw things, so this is all new to me.

I'm trying to draw the following

enter image description here

And I got the circles about right, but I have no idea how to draw these arrows:

enter image description here

This is my code:

\begin{tikzpicture}
\def\firstcircle{(0,0) circle (2cm)}
\def\secondcircle{(6,-8) circle (2cm)}
\def\thirdcircle{(12,0) circle (2cm)}
\begin{scope}[ fill opacity=0.8]
    \fill[red] \firstcircle;
    \fill[green] \secondcircle;
    \fill[blue] \thirdcircle;
\end{scope}

\draw \firstcircle node[] (c1) {Verwacht};
\draw \secondcircle node[] (c2) {Afspraak};
\draw \thirdcircle node[] (c3) {Geleverd};
\draw[<->] (c1) -- (c2);
\draw[<->] (c2) -- (c3);
\draw[<->] (c3) -- (c1);
\end{tikzpicture}

If anyone could help me with these arrows, thanks!

7

With arrows.meta from tikz v3.

\documentclass[tikz,border=10pt]{standalone}
\usetikzlibrary{arrows.meta}
\begin{document}
  \begin{tikzpicture}
      \node[fill=red,circle,minimum width=1cm] at (0,0) (c1) {Verwacht};
      \node[fill=blue,circle,minimum width=1cm] at (5,0) (c2) {Afspraak};
      \node[fill=green,circle,minimum width=1cm] at (2.5,-4) (c3) {Geleverd};
      \draw[draw=red!60!black,line width=12pt,{Latex[length=9mm]}-{Latex[length=9mm]}] (c1)  -- (c2) 
         node[midway,text=white,font=\footnotesize\bfseries]{tevreden};
      \draw[draw=red!60!black,line width=12pt,{Latex[length=9mm]}-{Latex[length=9mm]}] (c2) -- (c3) 
         node[midway,text=white,font=\footnotesize\bfseries,sloped]{betrouwbaar};
\draw[draw=red!60!black,line width=12pt,{Latex[length=9mm]}-{Latex[length=9mm]}] (c3) -- (c1) 
         node[midway,text=white,font=\footnotesize\bfseries,sloped]{duidelijk};
  \end{tikzpicture}
\end{document}

enter image description here

Without arrows.meta (should work with tikz v2.1)

\documentclass[tikz,border=10pt]{standalone}
\usetikzlibrary{arrows}
\begin{document}
  \begin{tikzpicture}
    \node[fill=red,circle,minimum width=1cm] at (0,0) (c1) {Verwacht};
    \node[fill=blue,circle,minimum width=1cm] at (5,0) (c2) {Afspraak};
    \node[fill=green,circle,minimum width=1cm] at (2.5,-4) (c3) {Geleverd};
    \draw[draw=red!60!black,line width=10pt,stealth-stealth] (c1)  -- (c2) 
        node[midway,text=white,font=\footnotesize\bfseries]{tevreden};
    \draw[draw=red!60!black,line width=12pt,stealth-stealth] (c2) -- (c3)
        node[midway,text=white,font=\footnotesize\bfseries,sloped]{betrouwbaar};
    \draw[draw=red!60!black,line width=12pt,stealth-stealth] (c3) -- (c1)
        node[midway,text=white,font=\footnotesize\bfseries,sloped]{duidelijk};
   \end{tikzpicture}
\end{document}

enter image description here

Finally, it all boils down to the selection/design of arrow tips. While tikz v3 offers numerous possibilities, those with v2.1 are limited. Choose an arrow type as per your taste.

  • 1
    Thanks! Can I use this code inside my article or do I need to put it in a separate file and use \input? – Aaron Jan 18 '14 at 14:03
  • 1
    I keep getting errors about the \usetikzlibrary command, is there something special I need to do? – Aaron Jan 18 '14 at 14:41
  • 1
    Hmm, I did a full MikTex update and it's still not working. I can use the second example, but only if I leave out the import and then the arrow heads are black. Sorry for the trouble. – Aaron Jan 18 '14 at 14:54
  • 1
    @Aaron version 3 is not released yet with major tex distributions. you have to install it yourself from sourceforge.net/projects/pgf – user11232 Jan 18 '14 at 14:55
  • 1
    I see, I'll use your other example, but it gives this: i.imgur.com/IW2DeC1.png – Aaron Jan 18 '14 at 15:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.