Data check for plotting