enter image description here

I was wondering how I could draw something like this in TIKZ? I have an axis with numbers, but I would like the letters and the arrows...



  mark=at position #1 with {\arrow{<}}},postaction={decorate}}}

% a straight line segment
\draw[latex-] (-2,0) -- (0,0);
\draw[->-=.6] (0,0) -- (1,0);
\draw[-latex] (1,0) -- (2,0);
% the ticks and their labels
\foreach \x  in {-1,...,1}
  \draw[xshift=\x cm] (0pt,2pt) -- (0pt,-1pt) node[below,fill=white] {\the\numexpr\x +1\relax};


enter image description here

\documentclass[tikz, margin=3mm]{standalone}

L/.style={very thick, draw=#1, looseness=2, ->}
  \draw[very thick]    (0,0) -- + (7,0);
  \foreach \x in {1,2,...,6}{\coordinate (x\x) at (\x,0);}
  \draw (x1)+(0,1mm) -- + (0,-2mm) node[below] {$s$}
        (x4)+(0,1mm) -- + (0,-2mm) node[below] {$t$};
  \draw[L=orange] (x1) to [out=90, in=90] (x2);
  \draw[L=orange] (x2) to [out=90, in=90] (x3);
  \draw[L=orange] (x3) to [out=90, in=90] (x6);
  \draw[L=blue]   (x6) to [out=90, in=90] (x5);
  \draw[L=blue]   (x5) to [out=90, in=90] (x4);

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.