change plot code