plot is only for 1D data. eg, plot(x,y,”x”,”y”,”y(x)”.
image is for 2D data.
please search plot/image in Lumerical website https://optics.ansys.com/hc/en-us/articles/360034410474-plot-Script-command
depending on the dimension of phase, please choose proper script to plot it.