plot script.