In the following code, is there a way to repeat the blue and green drawings in their locations along the blue line without repeating their codes
\documentclass{beamer}
\beamertemplatenavigationsymbolsempty
\usepackage{tikz}
\begin{document}
\begin{frame}[fragile,t]
\frametitle{y}
\begin{tikzpicture}[scale=.9, transform shape]
\draw [thick,-latex](0,0) -- (5,0) node [black, xshift=.3cm, yshift=0cm] {$X$};
\draw [thick,-latex](0,0) -- (0,4.) node [black, xshift=0cm, yshift=.3cm] {$Y$};
\draw [ultra thick, blue] (1.4,1.4) +(-150:1.2cm) -- +(30:4cm) node [blue, xshift=.2cm, yshift=0cm] {$E$};
\draw [ultra thick, red] (1.4,1.4) node [red, xshift=0cm, yshift=0cm] {\huge .} +(-90:.84cm) node [red, xshift=0cm, yshift=-.035cm] {\LARGE \textendash} -- +(90:.84cm) node [red, xshift=0cm, yshift=-.035cm] {\LARGE \textendash};
\draw [very thick, green, densely dashed] (1.4,1.4) +(-90:1.4cm) -- +(90:0cm);
\draw [ultra thick, red] (2.46,2.02) node [red, xshift=0cm, yshift=0cm] {\huge .} +(-90:.84cm) node [red, xshift=0cm, yshift=-.035cm] {\LARGE \textendash} -- +(90:.84cm) node [red, xshift=0cm, yshift=-.035cm] {\LARGE \textendash};
\draw [very thick, green, densely dashed] (2.46,2.02) +(-90:2.02cm) -- +(90:0cm);
\draw [ultra thick, blue] (2.46,0) +(-90:.15cm) node [blue, xshift=0cm, yshift=-.35cm] {$$} -- +(90:.15cm);
\draw [ultra thick, red] (3.46,2.6) node [red, xshift=0cm, yshift=0cm] {\huge .} +(-90:.84cm) node [red, xshift=0cm, yshift=-.035cm] {\LARGE \textendash} -- +(90:.84cm) node [red, xshift=0cm, yshift=-.035cm] {\LARGE \textendash};
\draw [very thick, green, densely dashed] (3.46,2.6) +(-90:2.6cm) -- +(90:0cm);
\end{tikzpicture}
\vskip-2.3cm \hskip1.52cm
\begin{tikzpicture}[scale=.2, transform shape,rotate=-90]
\draw[red, very thick] (.1,.2) to [out=0,in=180, looseness=1.] +(0.:.2cm) to [out=0,in=180, looseness=.68] +(50:3.cm) to [out=0,in=180, looseness=.68] +(-50:3.cm) to [out=0,in=180, looseness=1.] +(0.:.2cm);
\draw [red, very thick] (2.23,2.5)-- (2.23,0);
\end{tikzpicture}
\vskip-1.488cm \hskip2.478cm
\begin{tikzpicture}[scale=.2, transform shape,rotate=-90]
\draw[red, very thick] (.1,.2) to [out=0,in=180, looseness=1.] +(0.:.2cm) to [out=0,in=180, looseness=.68] +(50:3.cm) to [out=0,in=180, looseness=.68] +(-50:3.cm) to [out=0,in=180, looseness=1.] +(0.:.2cm);
\draw [red, very thick] (2.23,2.5)-- (2.23,0);
\end{tikzpicture}
\vskip-1.45cm \hskip3.38cm
\begin{tikzpicture}[scale=.2, transform shape,rotate=-90]
\draw[red, very thick] (.1,.2) to [out=0,in=180, looseness=1.] +(0.:.2cm) to [out=0,in=180, looseness=.68] +(50:3.cm) to [out=0,in=180, looseness=.68] +(-50:3.cm) to [out=0,in=180, looseness=1.] +(0.:.2cm);
\draw [red, very thick] (2.23,2.5)-- (2.23,0);
\end{tikzpicture}
\end{frame}
\end{document}



pic: https://tex.stackexchange.com/questions/126161/how-can-i-draw-a-tikz-element-multiple-times-against-a-shaded-background/151772#151772 – Ignasi Jul 05 '18 at 13:40