Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Printing Plots in PDF format
Date: Fri, 25 Jul 2008 19:58:04 +0000 (UTC)
Organization: Santander Investment Securities Inc
Lines: 55
Message-ID: <g6db8c$on9$1@fred.mathworks.com>
References: <g6d752$3oa$1@fred.mathworks.com> <13efc0b1-46de-476e-a2fe-d132cd64d527@d45g2000hsc.googlegroups.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 1217015884 25321 172.30.248.37 (25 Jul 2008 19:58:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 25 Jul 2008 19:58:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 753791
Xref: news.mathworks.com comp.soft-sys.matlab:481894



Howard, thanks for your reply. But you didnot answer my 
question, there is got to be a simpler method which only 
deals with Matlab code. Appreciate if you can help with a 
straight forward solution with the code. 
Best regards, 

hrh1818 <hrhan@att.net> wrote in message <13efc0b1-46de-
476e-a2fe-d132cd64d527@d45g2000hsc.googlegroups.com>...
> On Jul 25, 1:48 pm, "Naveen " <nku...@bloomberg.net> 
wrote:
> > Hi,
> > Iam trying to create a bunch of plots, and print them 
to
> > pdf file. I am saving all my plots in figs() and if i
> > print them one by one into PDF file it works. But i 
like
> > to append them all together into one PDF file. I am 
unable
> > to do this. Any help is appreciated very much. Thanks 
in
> > advance. Best, Naveen
> >
> > % Print each of the 10 plots in a separate PDF 
document.
> >
> > print(figs(1),'-dpdf','-r600','-painters','test1.pdf')
> > print(figs(2),'-dpdf','-r600','-painters','test2.pdf')
> > print(figs(3),'-dpdf','-r600','-painters','test3.pdf')
> > print(figs(4),'-dpdf','-r600','-painters','test4.pdf')
> > print(figs(5),'-dpdf','-r600','-painters','test5.pdf')
> > print(figs(6),'-dpdf','-r600','-painters','test6.pdf')
> > print(figs(7),'-dpdf','-r600','-painters','test7.pdf')
> > print(figs(8),'-dpdf','-r600','-painters','test8.pdf')
> > print(figs(9),'-dpdf','-r600','-painters','test9.pdf')
> > print(figs(10),'-dpdf','-r600','-
painters','test10.pdf')
> >
> > % Print all the 10 plots into one PDF document.
> >
> > print(figs(1),'-dpdf','-r600','-painters','test.pdf');
> > for i=2:length(figs)
> >         print(figs(i),'-append','-dpdf','-r600','-
> > painters','test.pdf');
> > end
> 
> An alternate approach is to use a desk top publishing 
program to
> combine your 10 individual documents into one document.  
Scribus is a
> free desktop publishing program that can handle this 
task.   See:
> http://www.scribus.net/
> 
> Howard