Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: export_fig: image resolution/size
Date: Fri, 9 Oct 2009 08:36:02 +0000 (UTC)
Organization: Toshiba Research Europe Ltd
Lines: 48
Message-ID: <hamsli$r8t$1@fred.mathworks.com>
References: <halah3$2ak$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1255077362 27933 172.30.248.37 (9 Oct 2009 08:36:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 9 Oct 2009 08:36:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1073021
Xref: news.mathworks.com comp.soft-sys.matlab:576153


Hi Russ

export_fig doesn't take all the options that print does. I'm considering adding in the ability to increase resolution with an input parameter, but at the moment that feature isn't available.

However, as stated in the help text, export_fig exports figures exactly as they appear on screen - that includes the size. If you want a larger (i.e. higher resolution) image, make the figure larger.

HTH,
Oliver




"RUSSELL " <r.johnston@physics.gla.ac.uk> wrote in message <halah3$2ak$1@fred.mathworks.com>...
> hi there
> 
> I have finally managed to get my figures to have transparency via export_fig! yeee haaaa!
> for anyone wondering how this is done, i had to set :
> 
> set(gca,'color','none')
> set(gcf,'color','none')
> 
> and then
> 
> export_fig('-png','-nocrop','-opengl','-r300','outputfilename')
> 
> however, i cant seem to get the output image to change size in resolution and dimensions.  i have searched the help and forum extensively but nothing seems to work.
> 
> I have tried things like:
> 
> export_fig('PaperUnits','centimeters','PaperSize',[20. 20.],'-dpng','-nocrop','-opengl','-r2000','Testpng')
>  
> but nothing happens.. have also put the papersize command in the 
> 
> figure(...)  bit.
> 
> 
> changing -r in the export_fig doesnt seem to do anything.. every time i open the output file its quite small and around 72dpi
> 
> any suggestions would be great!!!!! 
> 
> cheers
> Russ
>  
> 
> 
> 
> 
>