I'm looking for a code drawing the below picture with TikZ if it is possible:
I just need the graph in the middle, i.e. there is no need to also include the text and/or equations. Simply the plot together with the axes would be more than fine.
From the suggestions of the comments I found this piece of code online that I copied but somehow it refuses to work: The source that I stole it from was a PDF and when I pasted it into a TeX-editor there were a lot of unnecesary blank space and other stuff. I suspect that's why it didn't work.
% Codice di Spike
\documentclass[a4paper ,11 pt]{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[y ={(0.866 cm,-0.5 cm)} , x ={(-0.866 cm ,-0.5 cm )},z ={(0 cm ,1 cm )}]
\coordinate(O) at (0 , 0 , 0);
\draw [-latex ](O) -- +(2 , 0 , 0) node [ left ]{$ x $};
\draw [-latex ](O) -- +(0 , 7 , 0) node [ right ]{$ y $};
\draw [-latex ](O) -- +(0 , 0 , 2) node [ above ]{$ z $};
% onde e vettori che indicano l? intensita ? dei campi
\draw [thick,color=teal,variable=\x,samples at ={0 ,0.1 ,... ,6.3}]
plot ({ - sin (2* \x r )},\x ,0) node [ anchor = north ]{$ \vec { E }$};
\foreach \x in {0.25 , 0.5 ,... ,6}
\draw [ color =teal , - latex ] (0 , \x ,0) -- ({ - sin (2* \x r )} , \x ,0);
\draw [thick , color = purple , variable =\x , samples at ={0 ,0.1 ,... ,6.3} ]
plot (0 , \x ,{ - sin (2* \x r )}) node [ anchor = west ]{$ \vec { H }$};
\foreach \x in {0.25 , 0.5 ,... ,6}
\draw [color = purple , - latex] (0 , \x ,0) -- (0 , \x ,{ - sin (2* \x r )});
% lambda - " lunghezza d? onda " dell ? onda
\draw [help lines] (0 ,2.35 ,1.4) -- (0 ,2.35 ,1.6);
\draw [help lines] (0 ,5.49 ,1.4) -- (0 ,5.49 ,1.6);
\draw [help lines] (0 ,2.35 ,1.5) -- (0 ,5.49 ,1.5)
node [pos =0.5 , fill =white , text = black ]{$ \lambda $};
\end{tikzpicture}
\end{document}

