results plot and sample data generation