Thread Subject: Export Surface plots to eps

Subject: Export Surface plots to eps

From: Stefan M?

Date: 19 Jul, 2008 21:27:01

Message: 1 of 4

Hi,

if I export surface plots to eps I get some artefacts. It
looks like the diagonals of the triangles will be displayed.
I see the effect only, if I export to eps or pdf, but not on
jpeg or png. Further, the plot in the matlab figure window
is ok.

There is no difference wheter I export with the menu of the
figure window, with print -deps filename.eps or
saveas(figure(1), 'filename','eps').

Ideas?

Subject: Export Surface plots to eps

From: Patrick Fletcher

Date: 29 Jul, 2008 17:29:03

Message: 2 of 4

I would also like to know if there is a workaround for this!
I get the same result: a thin white line bisects each
quadrilateral face of the surface when shading is set to the
default 'faceted.'

When shading is set to 'flat' or 'interp', there are little
black dots poking through the surface from where the mesh
would be.

I'm most interested in the 'faceted' case.

Thanks!

Patrick

"Stefan M?" <euklid2003@web.de> wrote in message
<g5tm75$8u9$1@fred.mathworks.com>...
> Hi,
>
> if I export surface plots to eps I get some artefacts. It
> looks like the diagonals of the triangles will be displayed.
> I see the effect only, if I export to eps or pdf, but not on
> jpeg or png. Further, the plot in the matlab figure window
> is ok.
>
> There is no difference wheter I export with the menu of the
> figure window, with print -deps filename.eps or
> saveas(figure(1), 'filename','eps').
>
> Ideas?

Subject: Export Surface plots to eps

From: Jeff Field

Date: 9 Oct, 2008 13:53:14

Message: 3 of 4

"Patrick Fletcher" <tuchwando@gmail.com> wrote in message <g6nk0v$t82$1@fred.mathworks.com>...
> I would also like to know if there is a workaround for this!
> I get the same result: a thin white line bisects each
> quadrilateral face of the surface when shading is set to the
> default 'faceted.'
>
> When shading is set to 'flat' or 'interp', there are little
> black dots poking through the surface from where the mesh
> would be.
>
> I'm most interested in the 'faceted' case.
>
> Thanks!
>
> Patrick
>
> "Stefan M?" <euklid2003@web.de> wrote in message
> <g5tm75$8u9$1@fred.mathworks.com>...
> > Hi,
> >
> > if I export surface plots to eps I get some artefacts. It
> > looks like the diagonals of the triangles will be displayed.
> > I see the effect only, if I export to eps or pdf, but not on
> > jpeg or png. Further, the plot in the matlab figure window
> > is ok.
> >
> > There is no difference wheter I export with the menu of the
> > figure window, with print -deps filename.eps or
> > saveas(figure(1), 'filename','eps').
> >
> > Ideas?
>

I'm having the same problem as well. When I export to .eps or .pdf, I do not see the issue with 'interp', but I need to use 'faceted' for my purposes. What platform are you running MATLAB on? I am using a Mac, and I thought the perhaps the problem will not show up on a PC. I've not yet tested this theory though.

Anyone found a solution to this problem yet?

Subject: Export Surface plots to eps

From: craq

Date: 13 Jul, 2009 12:57:02

Message: 4 of 4

I found 'lighting phong' removed black dots in some cases. No idea why though.

"Jeff Field" <jjfield@gmail.com> wrote in message <gcl2ca$ih$1@fred.mathworks.com>...
> "Patrick Fletcher" <tuchwando@gmail.com> wrote in message <g6nk0v$t82$1@fred.mathworks.com>...
> > I would also like to know if there is a workaround for this!
> > I get the same result: a thin white line bisects each
> > quadrilateral face of the surface when shading is set to the
> > default 'faceted.'
> >
> > When shading is set to 'flat' or 'interp', there are little
> > black dots poking through the surface from where the mesh
> > would be.
> >
> > I'm most interested in the 'faceted' case.
> >
> > Thanks!
> >
> > Patrick
> >
> > "Stefan M?" <euklid2003@web.de> wrote in message
> > <g5tm75$8u9$1@fred.mathworks.com>...
> > > Hi,
> > >
> > > if I export surface plots to eps I get some artefacts. It
> > > looks like the diagonals of the triangles will be displayed.
> > > I see the effect only, if I export to eps or pdf, but not on
> > > jpeg or png. Further, the plot in the matlab figure window
> > > is ok.
> > >
> > > There is no difference wheter I export with the menu of the
> > > figure window, with print -deps filename.eps or
> > > saveas(figure(1), 'filename','eps').
> > >
> > > Ideas?
> >
>
> I'm having the same problem as well. When I export to .eps or .pdf, I do not see the issue with 'interp', but I need to use 'faceted' for my purposes. What platform are you running MATLAB on? I am using a Mac, and I thought the perhaps the problem will not show up on a PC. I've not yet tested this theory though.
>
> Anyone found a solution to this problem yet?

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com