How to draw a surface plot without black edges in MATLAB?

后端 未结 4 563
日久生厌
日久生厌 2020-12-25 11:10

The black lines are awful, how can I get rid of them? I want only the colored surfaces.

4条回答
  •  忘掉有多难
    2020-12-25 11:49

    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.

    a= peaks(1000);
    h = surf(a)
    set(h, ‘edgecolor’,'none’)
    

    Note, I have made a 45 second video that shows this occurring and how to fix it.

    http://blogs.mathworks.com/videos/2008/08/13/matlab-basics-setting-edge-color-for-large-surface-plots/

提交回复
热议问题