Plotting a cumulative frequency graph