generate plot data