revised plotting scripts following Matthieu's suggestions