use the passed in data in the plot