看到这个帖子:
To set the edgecolor to white do the following.
h = fill([-1 -1 1 1],[-1 1 1 -1],'w');
axis([-2 2 -2 2]);
set(h,'edgecolor','white');
Run Code Online (Sandbox Code Playgroud)
应该照顾边界.
除了schnaader的答案,您还可以在初始调用FILL时设置边缘颜色:
hPatch = fill(xData,yData,'r','EdgeColor','r'); %# Red patch with red edges
Run Code Online (Sandbox Code Playgroud)
或者完全阻止边缘被绘制:
hPatch = fill(xData,yData,'r','EdgeColor','none'); %# Red patch with no edges
Run Code Online (Sandbox Code Playgroud)