add plot and data