Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: export_fig: image resolution/size
Date: Thu, 8 Oct 2009 18:20:19 +0000 (UTC)
Organization: UNIVERSITY OF GLASGOW
Lines: 35
Message-ID: <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 1255026019 2388 172.30.248.37 (8 Oct 2009 18:20:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 8 Oct 2009 18:20:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1001118
Xref: news.mathworks.com comp.soft-sys.matlab:576021


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