added a script to draw plots