An quick method is to modify this line by adding shift={(0.3cm,-0.3cm)} to fine tune the location.
\draw[dotted,name intersections={of=ucurve and uintersect, by=I}] let \p1 = (I) in (I) -- (\x1,0) node[shift={(0.3cm,-0.3cm)},blue]{$E(w)-\pi$};
Image may be NSFW.
Clik here to view.