How can I avoid extra white lines when exporting a figure to a vector graphic?

15 views (last 30 days)
I have a Matlab figure that looks great as a figure, but when I try to export it to a vector-based format (.eps or .pdf) white swirly lines appear as can be seen in the linked PDF. Some of the black dots also get partially covered, despite being much higher in the 3D graph than everything else, but that can be easily fixed in Inkscape.
I have also attempted to generate a .pdf or .eps using my preferred method, through "export_fig," but have ended up with the same results. Any tips would be much appreciated! The .fig file has also been attached.
  4 Comments
Geoff Hayes
Geoff Hayes on 2 Jul 2014
You're right, Mark that is not what you want for the vector-based image. (I deleted my answer and pasted it as a comment instead.)
From this link http://www.mathworks.com/help/matlab/creating_plots/changing-a-figures-settings.html#f3-102410 there is only the Painters renderer which can be used for drawing the figure using vector graphics.
There is some code on the File Exchange ( http://www.mathworks.com/matlabcentral/fileexchange/43271-pcolor-eps-fix) that fixes a similar problem for when pcolor is used to generate the figure. I tried it on yours, and while it does remove some of the swirly lines, some other artefacts are introduced.
The only interest then may be why this problem is occurring and so may lead to you finding a workaround.

Sign in to comment.

Answers (0)

Categories

Find more on Printing and Saving in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!