MATLAB Answers

Painters renderer creates unwanted white lines

2 views (last 30 days)
John Mahoney
John Mahoney on 31 Dec 2012
Answered: Ondra Kamenik on 19 Apr 2016
I want to render a surface using the painters renderer to make use of the vector graphic nature. In particular so the fonts and edges/lines will be sharp.
When rendering a surface with the painters renderer, I find that there are white lines that bisect each patch of the surface.
A minimal example.
Z = peaks(5);
s = surf(Z);
view(3)
set(gcf, 'renderer','painters')
print('-depsc2', 'peaks_with_white_lines')
Other discussions of this issue suggest using a different renderer. This seems unacceptable because of the font rendering alone.
Oliver says that it is really an issue with the image viewer, not the image. https://sites.google.com/site/oliverwoodford/software/export_fig I have not been able to find a viewer that does not display these white lines.
Any suggestions for either viewing the images without these artifacts or not creating them in the first place?
John

  0 Comments

Sign in to comment.

Answers (1)

Ondra Kamenik
Ondra Kamenik on 19 Apr 2016
I have the same problem.

  0 Comments

Sign in to comment.

Sign in to answer this question.