From: <HIDDEN>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: exporting figures from the command line
Message-ID: <ef5d17d.2@webcrossing.raydaftYaTP>
Date: Tue, 10 Jul 2007 18:59:19 -0400
References: <ef5d17d.-1@webcrossing.raydaftYaTP> <f70rl1$2v5$1@fred.mathworks.com> <ef5d17d.1@webcrossing.raydaftYaTP>
Lines: 18
NNTP-Posting-Host: 89.217.19.228
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:418362



o_depot:
<SNIP exporting a fig using a custom style sheet...

one of the (few) solutions

% assume your style sheet's name is <foo.txt>

% create a fig
     plot(1:10);
     fnam='your_fig.png'; % your file name
% the engine
% ...get style sheet info
     snam='foo'; % note: NO extension...
     s=hgexport('readstyle',snam);
% ...apply style sheet info
     hgexport(gcf,fnam,s);

us