template plot improvement