I want to plot the graph of a function (say a sine) on a curve, that is to say, plot the graph above a straight line then distort it into a given curve.
Here's a minimal example :
\documentclass[pstricks,border=12pt]{standalone}
\usepackage[left=4.0cm,right=4.0cm,top=4.0cm,bottom=4.0cm]{geometry}
\usepackage{tikz}
\usetikzlibrary{patterns}
\usepackage{pgfplots}
\usepackage{caption}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{xcolor}
\usetikzlibrary{arrows}
%
%
\begin{document}
%
%
%
\begin{figure}[!h]
\centering
\captionsetup{justification=centering,margin=2cm}
\begin{tikzpicture}[scale=1.0]
%
\draw[](-4,0)--(4,0);
%
\draw [red, thick] plot [pattern = vertical lines, rotate = 0, domain = -4:4, samples = 120] (\x,{0.5*sin(\x*180)});
%
\begin{scope} [shift={(0.0,0.0)}]
\draw [blue, thick] plot [rotate = 0.0, domain = -4.0:4.0, samples = 80] (\x,{-1.65*(\x*\x-16)/16});
\end{scope}
%
\end{tikzpicture}
\caption{\label{Name}Bla bla...}
\end{figure}
%
%
%
\end{document}
I first plot a horizontal straight line then plot a sine function above it (observe here that the pattern function does not work ; what am I doing wrong here ?). Then, I would like to plot say the same sine function but "above" the blue curve, as if the graph was following the blue curve.

decoration={coil,aspect=0}which comes with\usetikzlibrary{decorations.pathmorphing}but this does not look good out of the box. There are also the complete sines with which one may play. – Apr 28 '19 at 12:50fillbetweenbut in this case this does not bring real advantages IMHO.) – Apr 28 '19 at 16:07