Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!d45g2000hsc.googlegroups.com!not-for-mail
From: hrh1818 <hrhan@att.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Printing Plots in PDF format
Date: Fri, 25 Jul 2008 12:27:35 -0700 (PDT)
Organization: http://groups.google.com
Lines: 36
Message-ID: <13efc0b1-46de-476e-a2fe-d132cd64d527@d45g2000hsc.googlegroups.com>
References: <g6d752$3oa$1@fred.mathworks.com>
NNTP-Posting-Host: 75.27.49.136
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1217014055 22340 127.0.0.1 (25 Jul 2008 19:27:35 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 25 Jul 2008 19:27:35 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: d45g2000hsc.googlegroups.com; posting-host=75.27.49.136; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) 
Xref: news.mathworks.com comp.soft-sys.matlab:481891



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