Generate plots script