Fill a 1-D histogram from a parametric function. See the ROOT code here. Gallerie: Visualisation techniques and basic graphics Screenshot