removed redundant lines in generate_plot_script.m