Modify script for ploting figures in the thesis.