Better plot script