As stated in this brilliant answer tikz splines can be genrated this way (code is shamelessly copied):
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw [gray!50, xshift=4cm] (0,0) -- (1,1) -- (2,-2) -- (3,0);
\draw [cyan, xshift=4cm] plot [smooth, tension=2] coordinates { (0,0) (1,1) (2,-2) (3,0)};
\end{tikzpicture}
\end{document}
However, what I need is a spline that becomes transparent at the second coordinate and becomes visible again after the third one.
Simply using two splines does not work, because it changes the shape of the spline between the first and second, and third and forth coordinate.
Is there a way of doing that?
