I'm looking for a way to draw a tube around a function. I already defined my function (see code below). The distance between tube and function shoulb be equal in each point -> see for example arrows in the picture below.
I'm looking just for the tube outside, the arrows are just for explanation.
\documentclass[11pt]{standalone}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}[scale = 2]
\begin{axis}[
hide axis,
domain=0:100,
samples=100]
\addplot[BrickRed,domain=0:100,ultra thick, no marks] {sin(x*5.34)+cos(x)};
\end{axis}
\end{tikzpicture}
\end{document}



\addplot[double, double distance=15pt,domain=0:100, line width=1pt, no marks] {sin(x*5.34)+cos(x)};before your actual plot (thedoublekey does pretty much what @daleif suggested) – Jake Jan 27 '16 at 18:39