pcolor eps white line / diagonal polygon issue: Any sensible fix?!
1 view (last 30 days)
Show older comments
You know the issue - there's countless threads dedicated to it, but I've still not found a suitable fix. My pcolor plot (actually m_pcolor from the m_map toolbox, but this should make no difference) needs to be output as a high quality vector image.
No matter which function I use (built in 'print', or 'export_fig' or 'savefig' from the FileExchange) I can't get rid of the white line artefacts. Yes, I realise that this is due to the image software used to open the file and how it renders the figure, but changing that isn't an option as this is for a journal figure and so the fix needs to be a 'real' fix. See an example of the problem here: http://www.matlab-cookbook.com/recipes/0050_Plotting/0040_2D_Data/blurry_eps.html
This suggestion (<http://www.mathworks.com/matlabcentral/fileexchange/43271-pcolor-eps-fix>) may actually work, but its not feasible for my figure which is large and has an enormous amount of patches or shapes that need fixing.
Any suggestions!? Thanks.
4 Comments
Seth
on 13 Oct 2015
This is absolutely ridiculous. I cannot create publication quality .eps figures, which severely limits the value of MATLAB. Mathworks needs to address this issue NOW. And I don't buy all the garbage about it being an image viewer issue. If I make the same figure with r2014a then I don't have the issue. In r2014b+, .eps files are not being saved properly.
Dene Farrell
on 21 Dec 2016
[Basically it says: Another work around is to use illustrator programatically fix_matlab_vector_graphics]
Answers (1)
Kelly Kearney
on 22 Jan 2015
It's hardly an ideal solution, but my way of dealing with this is to export two images: one with only the pcolor object visible (no axes, lines, text, etc) to to a hi-resolution .png, and one with everything else to a vector format (.pdf usually, but it should work for .eps too). Then I use Adobe Illustrator to combine the two and save as a .pdf/.eps file. A bit of a pain, and of course it requires access to Illustrator, but it does result in the desired high-quality vector image without any white-triangle artifacts, as needed for a journal submission.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!