A function used to plot data points