get the plot data correct