clear all;

hax1 = subplot (1, 2, 1);
x = [0 10; 9 1; 0 10];
y = [0 1; 0 10; 9 10];
c = [0 0; 3 3; 6 6];
patch (hax1, x, y, c, "facecolor", "interp");
colormap (hax1, "cool");
colorbar (hax1);

hax2 = subplot(1, 2, 2);
x = [0 10; 9 1; 0 10];
y = [0 1; 0 10; 9 10];
c = [0 0; 3 3; 6 6];
patch (hax2, x, y, c, "facecolor", "interp");
colormap (hax2, "jet");
colorbar (hax2);
