better plot script