cfg for plot code