Problem with white lines showing up when exporting surf plots
5 次查看(过去 30 天)
显示 更早的评论
How can I get rid of white lines that appear when you export a surf plot as eps or pdf?
I've already checked out the following answer which appears to be 4 years old and does not work! https://se.mathworks.com/matlabcentral/answers/290313-why-is-vector-graphics-chopped-into-pieces
Here is an example of the artifact that shows up when you export a surf plot!
z = peaks();
figure
surf(z,'EdgeColor','none','FaceColor','interp')
print(gcf,'-depsc','-painters','out.eps');
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/256669/image.png)
There are white lines showing up in the figure!
Here is a zoom on a particular section of the figure above where you can see the horrendous export Matlab performs.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/256670/image.png)
How do I fix this?
0 个评论
回答(1 个)
Image Analyst
2019-12-23
I suggest you call tech support. The developers are aware of the "white lines issue" and have been trying to fix it but evidently it's really tricky. They've solved it partially but not 100% yet.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!