unknown white lines when saving pie chart as pdf

Viewed 453

When I save a pie chart as pdf, the pdf has unknown white lines. To simplify the question, I modify the code to its most generic form as the following.

clc;
h=pie(1);
%set the pie chart color to black
h(1).FaceColor = 'k';

The reason I choose to use black color is the white lines contrast most with a black background. Please see the attached pdf figure.

when-saving-piechart-as-pdf

I also find a similar thread having the same issue at this link: weird artifacts when saving pie chart as pdf. No solution is provided at this point.

My system configuration: macOS Sierra version 10.12. Matlab R2016b.

Any input is welcome. Thank you.

3 Answers

I encounter the same problem with 2015 version of Matlab but the problem seems to disappear with older versions. Try Matlab 2014 or below.

Related