I would like to draw the following curve
I have this code, but I could not edit it; any help!
\begin{tikzpicture}
\begin{axis}[
domain=0:6*pi,
samples=100,
axis lines*=left,
xtick=\empty, ytick=\empty,
width=13cm, height=8cm
]
\addplot [thick, gray] {x};
\addplot [thick, black] {x + 4*sin(deg(x)) * sin(deg(x/6))^0.5}
node [pos=0.1, anchor=south] {Peak}
node [pos=0.3, anchor=south, sloped] {Expansion}
node [pos=0.49, anchor=south, sloped] {Recession}
;
\end{axis}
\end{tikzpicture}
Best Answer
Here is a minimal working example of a graph with variations:
I haven't precisely placed the maximum, but this can be adjusted if you change the position of the nodes.
You can also add some commands to draw the horizontal arrows as per the drawing above.
Hope that makes it clearer.
Romain