Display data points
// Some function
x = 1:10;
y = x^2;
plot(x,y);
//Display fifth number
i = 5;
// Create a nice string label
stringToDisplay = sprintf("X: %d, Y: %d", x(i), y(i));
// Put it at the correct spot on the plot
xstring( x(i), y(i), stringToDisplay );
The nicest thing would to place it in a function:
function plotMyLabel(i)
stringToDisplay = sprintf("X: %d, Y: %d", x(i), y(i));
xstring( x(i), y(i), stringToDisplay );
endfunction
Multiple plots
You could create a figure with multiple subplots and export it. See subplot documentation of scilab.
//plot first graph
subplot(1,2,1);
plot(x1,y1);
//plot second graph
subplot(1,2,2);
plot(x2,y2);
// Format the figure at will
fig = gcf();
fig.figure_size=[1200, 800];
fig.children.margins = [0.05, 0.05, 0.05, 0.05];
//export to file
xs2pdf(fig, 'my_out_file');