When I function imshow to display an image and change the default color, everything is okay. However, when I save the figure to pdf format, the color of white pixel is not correct.
set(groot, 'DefaultFigureColor', 'blue');
set(groot, 'DefaultFigureInvertHardcopy', 'off');
p = phantom();
figure(1)
imshow(p)
saveas(gcf, 'phantom.pdf');
This is the result of Figure 1.
This is the result in file 'phantom.pdf'.
1 Comment
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/561098-wrong-pixel-color-when-save-figure-as-pdf-using-a-different-background-color#comment_930611
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/561098-wrong-pixel-color-when-save-figure-as-pdf-using-a-different-background-color#comment_930611
Sign in to comment.