I'd like to know if it is possible to use a figure which position is larger than screen resolution, in order to save it in a larger jpeg of pdf for example.
fh=figure
set(fh,'Position',[0 0 2000 2000])
set(fh,'visible','off')
get(fh,'Position')
And the result of the get is
ans =
0 0 1280 730
which is limited by my screen resolution. I don't need to actually see the figure, just to save the result using savefig.
Many thanks,
JC
Matlab's native incompetence at figure output is alleviated by the fantastic export_fig utility [1].
>> export_fig foo.jpg -m2
Seems to do the trick. I have a function that uses export_fig to save the current figure as a pdf, eps, and png and as a standard fig file (recall that pdf/eps are vector graphics, so you can magnify them as much as you want, using, e.g., Gimp [2] or ImageMagick [3]).
[1] http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig
[2] http://www.gimp.org/downloads/
[3] http://www.imagemagick.org/script/binary-releases.php
I'm pretty sure this is an operating system issue, not a matlab issue. Your OS will only let you make figures of a certain size. But as mentioned above, you can use export_fig or use the print command instead of saveas and you can specify a resolution (you will also need to set the figure's "papersize" property before using print)