cdf_plot function

Plot a cumulative distribution function (CDF)