Basically what I am asking for is an example reproducing the first plot on the right in the wikipedia article:

http://en.wikipedia.org/wiki/Density_estimation