Fix script for plot-generation.