A two-line script for exporting to PDF in landscape orientation A4 (assuming that your graph is "current drawing"):
% ------------------------------------------------- ------------------
% change the paper size as landscape-A4 and move the picture accordingly
set (gcf, "PaperSize", [29.7 21.0], "PaperPosition", [0 0 29.7 21.0])
% export to PDF file 'YourFileName.pdf'
type -dpdf 'YourFileName'
% ------------------------------------------------- ------------------
Any other tweak: check the properties of Figure - just "get (gcf)" in the command window
riccardo
source share