graphics_toolkit("gnuplot")

close all
figure (1)
[x, y, z] = peaks ();
[c, h] = contour (x, y, z);
clabel (c, h)
xlabel xlabel
ylabel ylabel
title title

# !! setting the figure position during the creation is mandatory with gnuplot
# it is impossible to change it afterwards
paper_width = 12;
paper_height = 21;
paper_position = [0, 0, paper_width, paper_height];
set (gcf () , 'PaperUnits', 'centimeters');
set (gcf (), "PaperSize", [paper_width paper_height])
set (gcf (), 'PaperPosition', paper_position);
orient landscape

print try.pdf
