Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: export_fig: image resolution/size
Date: Thu, 8 Oct 2009 18:39:03 +0000 (UTC)
Organization: PatientsLikeMe
Lines: 29
Message-ID: <halbk7$gjj$1@fred.mathworks.com>
References: <halah3$2ak$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1255027143 17011 172.30.248.35 (8 Oct 2009 18:39:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 8 Oct 2009 18:39:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1841757
Xref: news.mathworks.com comp.soft-sys.matlab:576028


"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!!!!! 

I think you need to set the 'PaperPosition' attribute of the figure object.