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 5

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 5

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 5

"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 5

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?

Subject: Export Surface plots to eps

From: Vinesh Rajpaul

Date: 12 Jul, 2010 21:32:04

Message: 5 of 5

Try the suggestion here:

http://www.mathworks.com/matlabcentral/newsreader/view_thread/280185,

i.e. disable anti-aliasing in your PDF/EPS viewer.

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

Contact us at files@mathworks.com