As written in the manual of Gnuplot at page 136,
Because the pm3d algorithm does not extend the colored surface outside the range of the input data points, the 'c' coloring options will result in pixels along two edges of the grid not contributing to the color of any quadrangle. For example, applying the pm3d algorithm to the 4x4 grid of data points in script demo/pm3d.dem (please have a look) produces only (4-1)x(4-1)=9 colored rectangles.
So if I would like to plot a 4x4 pixel sized image, I can't do it in this way without missing the 4th column and row. (I would like not to modify the file.) Is there an efficent workaround for this problem?
plot ... with image
what you actually want? For this, see my (lenghty) answer to gnuplot matrix or palette using one line - Christophplot ... with image
satisfies my requirements. If you would write an answer I could accept it. This question is important and not trivial to use this solution because as I see it is an improvement in gnuplot since 4.3 - DanielTuzes