Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Figure larger than screen resolution

607 views
Skip to first unread message

Jean-Christophe

unread,
Dec 10, 2010, 10:51:05 PM12/10/10
to
Hello,

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

Ahmed Fasih

unread,
Dec 11, 2010, 10:12:05 AM12/11/10
to
> which is limited by my screen resolution. I don't need to actually see the figure, just to save the result using savefig.

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

matt dash

unread,
Dec 11, 2010, 11:14:04 AM12/11/10
to
"Jean-Christophe " <removej...@removeuottawa.ca> wrote in message <idusf9$c1n$1...@fred.mathworks.com>...


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)

0 new messages