After adjusting the in
and out
values a little bit and adding appropriate styles and nodes, one can get something like the following.
If the two paths inside the ellipse should have more kinks like in your picture you will need to give more coordinates and more in
and out
options (or similar solutions) or for nicer outputs the hobby
library or the smooth
options …
Code
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}
\tikzset{
Arrow/.style={
decoration={
name=markings,
mark=at position .5 with \arrow{#1}
},
postaction=decorate
},
Arrow/.default=>
}
\begin{document}
\begin{tikzpicture}[
auto,
nodes={font=\scriptsize},
every label/.append style={inner ysep=+1pt}
]
\draw (0,0) ellipse (49pt and 39pt);
\path (60:49pt and 39pt) coordinate[label=above right:$x$];
\draw[Arrow] (0,1) coordinate[label=above:$x_0$]
to [out=-30, in=45] node {$f$} (0,-1)
coordinate[label=below:$x_1$];
\draw[Arrow=<] (0,1) to [out=-150, in=135] node[swap] {$g$} (0,-1);
\end{tikzpicture}
\end{document}
Output
\draw (0,1) to [out=-30, in=45](0,-1); \draw (0,1) to [out=-150,in=135](0,-1);