Thread Subject: Please help me produce a nice .eps or .pdf using pcolor

Subject: Please help me produce a nice .eps or .pdf using pcolor

From: Dan Jones

Date: 22 Apr, 2010 16:55:21

Message: 1 of 5

Hi all,

I'm using pcolor (with interpolated shading) to create a figure. My goal is to then use Adobe Illustrator (CS3) to produce a publication-quality graphic.

The figure that Matlab produces looks great, but once I save the image in EPS or PDF format, the quality goes down considerably. The image is crisscrossed with white lines that form triangular polygons. I guess those are the primitive objects that were used to draw these particular vector graphic images. Unfortunately, it looks awful.

I've tried saving the Matlab output in Illustrator format and then opening this file in illustrator, but the results are terrible - the image looks very blocky. Saving the Matlab output as a bitmap doesn't seem to work, either. The quality is too low.

Is this just a data resolution problem? That is, should I try and get data that is better resolved before plotting this image? Any suggestions are very welcome!

Subject: Please help me produce a nice .eps or .pdf using pcolor

From: Oliver Woodford

Date: 22 Apr, 2010 22:34:20

Message: 2 of 5

"Dan Jones" <Daniel.Jones@colostate.edu> wrote in message <hqpv1p$hi$1@fred.mathworks.com>...
> Hi all,
>
> I'm using pcolor (with interpolated shading) to create a figure. My goal is to then use Adobe Illustrator (CS3) to produce a publication-quality graphic.
>
> The figure that Matlab produces looks great, but once I save the image in EPS or PDF format, the quality goes down considerably. The image is crisscrossed with white lines that form triangular polygons. I guess those are the primitive objects that were used to draw these particular vector graphic images. Unfortunately, it looks awful.
>
> I've tried saving the Matlab output in Illustrator format and then opening this file in illustrator, but the results are terrible - the image looks very blocky. Saving the Matlab output as a bitmap doesn't seem to work, either. The quality is too low.
>
> Is this just a data resolution problem? That is, should I try and get data that is better resolved before plotting this image? Any suggestions are very welcome!

Try to produce publication quality bitmaps direct from Matlab using export_fig from the FEX.

Subject: Please help me produce a nice .eps or .pdf using pcolor

From: Vinesh Rajpaul

Date: 12 Jul, 2010 21:22:04

Message: 3 of 5

Hi -

The problem you mentioned (the "white crisscrossed lines") frustrated the hell out of me for a while. As far as I can tell, the problem lies not with MATLAB's image rendering but rather with the anti-aliasing routine used in most PDF/EPS viewers. In other words the output from MATLAB is fine but the PDF viewer is not rendering the image correctly. If you can find a way to turn the anti-aliasing (in your PDF/EPS viewer) off, I think the problem will likely go away. E.g. if you are using Adobe Reader: go to Preferences > Page Display > disable the "smooth line art" setting. This sorted out the issue for me!

"Dan Jones" <Daniel.Jones@colostate.edu> wrote in message <hqpv1p$hi$1@fred.mathworks.com>...
> Hi all,
>
> I'm using pcolor (with interpolated shading) to create a figure. My goal is to then use Adobe Illustrator (CS3) to produce a publication-quality graphic.
>
> The figure that Matlab produces looks great, but once I save the image in EPS or PDF format, the quality goes down considerably. The image is crisscrossed with white lines that form triangular polygons. I guess those are the primitive objects that were used to draw these particular vector graphic images. Unfortunately, it looks awful.
>
> I've tried saving the Matlab output in Illustrator format and then opening this file in illustrator, but the results are terrible - the image looks very blocky. Saving the Matlab output as a bitmap doesn't seem to work, either. The quality is too low.
>
> Is this just a data resolution problem? That is, should I try and get data that is better resolved before plotting this image? Any suggestions are very welcome!

Subject: Please help me produce a nice .eps or .pdf using pcolor

From: Chris

Date: 28 Jul, 2011 20:18:11

Message: 4 of 5

I spent some time dealing with this problem today and I couldn't figure out how to change the anti-aliasing (I'm using Inkscape, maybe there's a way to do it?). Eventually I stumbled on a simple but not very elegant solution:

1. open the .eps file
2. ungroup everything: after 3-4 ungroups I had it down to a layer in which all of the triangles can be selected with a single click.
3. copy the triangles and paste in place a couple times. The lines get fainter and disappear eventually.


"Vinesh Rajpaul" wrote in message <i1g11s$jt9$1@fred.mathworks.com>...
> Hi -
>
> The problem you mentioned (the "white crisscrossed lines") frustrated the hell out of me for a while. As far as I can tell, the problem lies not with MATLAB's image rendering but rather with the anti-aliasing routine used in most PDF/EPS viewers. In other words the output from MATLAB is fine but the PDF viewer is not rendering the image correctly. If you can find a way to turn the anti-aliasing (in your PDF/EPS viewer) off, I think the problem will likely go away. E.g. if you are using Adobe Reader: go to Preferences > Page Display > disable the "smooth line art" setting. This sorted out the issue for me!
>
> "Dan Jones" <Daniel.Jones@colostate.edu> wrote in message <hqpv1p$hi$1@fred.mathworks.com>...
> > Hi all,
> >
> > I'm using pcolor (with interpolated shading) to create a figure. My goal is to then use Adobe Illustrator (CS3) to produce a publication-quality graphic.
> >
> > The figure that Matlab produces looks great, but once I save the image in EPS or PDF format, the quality goes down considerably. The image is crisscrossed with white lines that form triangular polygons. I guess those are the primitive objects that were used to draw these particular vector graphic images. Unfortunately, it looks awful.
> >
> > I've tried saving the Matlab output in Illustrator format and then opening this file in illustrator, but the results are terrible - the image looks very blocky. Saving the Matlab output as a bitmap doesn't seem to work, either. The quality is too low.
> >
> > Is this just a data resolution problem? That is, should I try and get data that is better resolved before plotting this image? Any suggestions are very welcome!

Subject: Please help me produce a nice .eps or .pdf using pcolor

From: Wardo

Date: 4 Dec, 2011 01:06:09

Message: 5 of 5

This is a nice little workaround.

If you have Microsoft PowerPoint, it views it properly!

So save your pcolor figure to *.eps.

Then drag it into PowerPoint. In PowerPoint, right click the imported picture and Save As as PDF.

Illustrator can then open this, and the lines are gone!

~Ward

Tags for this Thread

Everyone's Tags:

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.

Tag Activity for This Thread
Tag Applied By Date/Time
white lines Vinesh Rajpaul 12 Jul, 2010 17:24:11
artefacts Vinesh Rajpaul 12 Jul, 2010 17:24:11
pdf Vinesh Rajpaul 12 Jul, 2010 17:24:11
graphics Dan Jones 22 Apr, 2010 12:59:23
images Dan Jones 22 Apr, 2010 12:59:23
interpolated sh... Dan Jones 22 Apr, 2010 12:59:23
pcolor Dan Jones 22 Apr, 2010 12:59:23
rssFeed for this Thread

Contact us at files@mathworks.com