I'm writing up my notes from my photonics lectures, in LaTeX. Both so I can make sense of the notes, and so I can learn some LaTeX. To be frank doing it in LaTeX is quite a motivating reason to go through them!
The issue is, I need draw a quantum harmonics oscillator that appears like so:

This is what I have so far:

I'd like more control over the parabola so I can eventually make it larger and change the aspect ratio I've gotten where I am by guess work. As well I'd like to draw the wavefunctions and put them outside of the parabola with arrows (i.e. pins) but I'm not sure what the best way to draw the wave functions is. How can I draw them? They only need to be sin/cos functions.
Here is what I have so far:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[->] (-0.5,-2) -- (-0.5,0.5);
\draw (-2.69,-0.5) -- (2.5,-0.5) node[right] {E2};
\draw (-2.25,-1) -- (2.5,-1) node[right] {E1};
\draw (-1.75,-1.5) -- (2.5,-1.5) node[right] {E0};
\draw (-3,0) parabola[parabola height=-2cm] (2,0);
\end{tikzpicture}
\end{document}
I'll warn you I have tried drawing from functions (brought in through gnuplot), and it's never seemed to work, so if that's your answer be prepared for a thorough explanation!
Edit the First
I now have this code
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[->] (0,0) -- (0,4.5);
\def\lzero{(3,0.4) cos (4,0.6) sin (5,0.8) cos (6,0.6) sin (7,0.4)};
\fill[blue,opacity=0.2] \lzero;
\draw[blue!75!black] \lzero node[right,black] {$\Psi_0(x)$ \textendash ~Even};
\draw (-0.632,0.4) -- (2,0.4) node[right] {$E_0$};
\def\lone{(3,1.5) cos (3.66,1.4) sin (4.33,1.3) cos (5,1.5) sin (5.66,1.7) cos (6.33,1.6) sin (7,1.5)};
\fill[red,opacity=0.2] \lone;
\draw[red!75!black] \lone node[right,black] {$\Psi_1(x)$ \textendash ~Odd};
\draw (-1.224,1.5) -- (2,1.5) node[right] {$E_1$};
\def\ltwo{(3,2.6) cos (3.5,2.7) sin (4,2.8) cos (4.5,2.6) sin (5,2.4) cos (5.5,2.6) sin (6,2.8) cos (6.5,2.7) sin (7,2.6)};
\fill[green,opacity=0.2] \ltwo;
\draw[green!75!black] \ltwo node[right,black] {$\Psi_2(x)$ \textendash ~Even};
\draw (-1.61,2.6) -- (2,2.6) node[right] {$E_2$};
\draw (0,0) parabola (2,4);
\draw (0,0) parabola (-2,4);
\end{tikzpicture}
\end{document}
Which produces this:

Now I understand how to draw parabolas better, and how to make the wave functions, I'm much happier.



