How to draw a surface plot without black edges in MATLAB?
Date: 2022-06-28 11:11:52
The black lines are awful, how can I get rid of them? I want only the colored surfaces.
Answers:
Another choice is to set the edgeColor and/or lineStyle properties of the surface handle object to none.
>> hSurf = surf(X,Y,Z,'EdgeColor','none','LineStyle','none','FaceLighting','phong');
This is a more general solution, you can change the edgeColor after the surface has been created too. It does not rely on LineStyle and FaceLighting.