plot script for sketch