Unknown white lines when saving a pie chart in pdf format

When I save a pie chart in pdf format, there are unknown white lines in pdf. To simplify the question, I modify the code in its most general form as follows.

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

The reason I prefer to use black is the white lines that contrast most with the black background. See the attached pdf file.

when-saving-piechart-as-pdf

I also found a similar stream that has the same problem at this link: strange artifacts when saving a pie chart in pdf format . No decision is currently provided.

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

Any input is welcome. Thank.

+4
2

pie , :

  • set(gcf,'renderermode','manual');
  • set(gcf,'renderer','opengl');
  • set(gcf,'renderer','opengl','renderermode','manual');

, get(gcf,'renderer'), , opengl ( , ), , . , opengl, , (MATLAB) .

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


% set(gcf,'rendererMode','manual');
set(gcf,'renderer','opengl','renderermode','manual')
saveas(gcf,'pie.pdf'); 

, , .pdf (.. ). what pdf looks like

+2

, 100% , , , , MATLAB , PDF . , , , MATLAB, .

SVG, , inkscape, ( this). Inkscape PDF.

+1

Source: https://habr.com/ru/post/1682458/


All Articles