How to plot cumulative frequency