Display regular grid using X Y Z values

Hi,
I have a 2d array of Z values, and for each Z element, I have the corresponding X Ys.
I would like to display the Z (image) just like an imagesc would, but following the XY positions of the cells in an XY axis.

Any suggestions?

Thanks

Maybe, pcolor with 3 input arguments would be doing what you are looking for.
Two-Dimensional Plots (GNU Octave (version 7.3.0))

1 Like

yes pcolor works. I used Matlab for years and never came across it.
Thanks !

p=pcolor( x, y, Z); % x y z are matrixes
shading interp;
set(p, "facealpha", 0.6);