// test_patch.sce

clear; xdel(winsid());

// Define vertices
vertices = [
    1, 0, 0;  // vertice #1
    0, 2, 0;  // vertice #2
    0, 0, 3]; // vertice #3

// Draw patch
h_fig = figure;
h_fig.background = 8;
plot3d(vertices(:,1), vertices(:,2), vertices(:,3));

// Axes settings
xlabel("x"); ylabel("y"); zlabel("z");
h_axes = gca();
h_axes.isoview = "on";
h_axes.box = "off";
h_axes.rotation_angles = [59, 52];
h_axes.data_bounds = [-1.5, -0.5, 0; 2.5, 2.5, 3];
xgrid;