How can I draw opposite arrows on the same curve? The following image shows my aim.


  • 1
    an you show us what you got so far in the form of a minimal working example? – Johannes_B Jan 22 '14 at 8:00
  • I am still very new to this. I don't know how to do that at all. I just downloaded pgfplots package today. – Ruzayqat Jan 22 '14 at 8:09
  • Have a look at its manual, there is a good tutorial. – Johannes_B Jan 22 '14 at 8:10
  • I did. But I couldn't find anything related to what I am asking for. Two arrows on the same curve (the curve may have an equation xy-coordinates) – Ruzayqat Jan 22 '14 at 8:11

The right way to go here is with the library decorations.markings and to define a style that places both arrows and labels.

This is a possibility (some ideas taken from How to make a figure with moving arrows?):


\usetikzlibrary{decorations.markings,arrows} % arrows for *-* tips

  arrow color/.store in=\arrowcolor,
  arrow color=black,
  arrow tip/.store in=\arrowtip,
  arrow tip=to,
  label 1/.store in=\labone,
  label 1={},
  label 2/.store in=\labtwo,
  label 2={},

\tikzset{double arrow/.style args={in #1 and #2}{
    mark=at position #2 with {
      \arrow[\arrowcolor,arrows options]{\arrowtip};
      \node[labels options]{\labtwo};
    mark=at position #1 with {
      \arrowreversed[\arrowcolor,arrows options]{\arrowtip};}
      \node[labels options]{\labone};
  arrows options/.style={
  labels options/.style={

\draw[-stealth, very thick](0,0)--(6,0) node[below]{$x$};
\draw[-stealth, very thick](0,0)--(0,5) node[left]{$y$};

  arrow tip={stealth},
  double arrow=in 0.2 and 0.8, % places 
  label 1={$-C$},
  label 2={$C$},
  *-*, % tips at both sides of the path
 (1,1) node[below] {$z_1$}
 .. controls (3,3) and (5,3) .. 
 (5,3) node[below] {$z_2$};


The result:

enter image description here

  • When I performed it actually I got a picture like this but without the two endpoints marks. Any suggestions? – Ruzayqat Jan 22 '14 at 8:45
  • Sorry, my fault :). I updated the first version, but forgetting to add the arrows library and tips. I'll edit the answer. – Claudio Fiandrino Jan 22 '14 at 8:47

Another version with tikz v3:


        mark=at position .85 with {\arrow{Latex}}},postaction={decorate}},
        mark=at position .15 with {\arrow{Latex[reversed]}}},postaction={decorate}},
    \draw (-1,0) -- node[pos=0.1,below] {$O$} (6,0)node[pos=0.98,below] {$x$};
    \draw (0,-1) -- (0,6)node[pos=0.98,left] {$y$};

    \node[inner sep=2pt,circle,fill=black,label={below:$z_{1}$}] at  (1,2) (a) {} ;
    \node[inner sep=2pt,circle,fill=black,label={below:$z_{2}$}] at  (5,3) (b) {} ;
    \draw (a) edge[in=180,out=30,->-,-<-] node[pos=0.1,above]{$-C$} node[pos=0.85,above]{$C$} (b) ;

enter image description here


With PSTricks just for fun.



enter image description here

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.