Path: news.mathworks.com!not-for-mail
From: "Michael Garrity" <mNOSPAMgarrity@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: resource intensive in PDF created from ezmesh
Date: Wed, 28 May 2008 12:10:25 -0400
Organization: The MathWorks, Inc.
Lines: 32
Message-ID: <g1k05j$s4r$1@fred.mathworks.com>
References: <g169gh$emi$1@fred.mathworks.com>
Reply-To: "Michael Garrity" <mNOSPAMgarrity@mathworks.com>
NNTP-Posting-Host: garritym.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1211991027 28827 144.212.107.178 (28 May 2008 16:10:27 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 28 May 2008 16:10:27 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
Xref: news.mathworks.com comp.soft-sys.matlab:470911



"Abe Lau" <abe@nonexistancegmail.com> wrote in message news:g169gh$emi$1@fred.mathworks.com...
> Hi All,
> I have been using ezmesh to generate 3-D plane plots and
> have come to a problem when importing them into my thesis.
> The PDF generated from the figure (e.g. ezmesh('2x+3y+4', [1
> 50 1 50])) gives a very high CPU load when viewing it in all
> PDF viewers I tried(Acrobat, Kpdf etc).
>
> Is it because the vector format is really complicated for
> the planes, or is there other better/easy alternatives?  SVG
> doesn't seems to be supported at all in matlab unfortunately!
>
> While the PDF is obviously working, I really don't want to
> impose a mandatory coffee break whenever other people open
> the PDF waiting for 50-100 of figures to be rendered!
>
> Thanks for all input,
> Abe
>
You're getting something like 3,600 polygons (plus edges) for
each figure. That's a lot more than you would typically see in
a figure in a PDF file. Your choices are to lower the resolution
or save it in a raster format. When the number of objects is
large, a high res raster format can sometimes actually be a
better choice than a vector format.


    -Mike Garrity
    -The MathWorks, Inc.