Update plot code.