필터 지우기
필터 지우기

How do I remove the outline from a fill object?

조회 수: 175 (최근 30일)
Jonathan
Jonathan 2015년 1월 9일
Hi,
I have a gray ([.7 .7 .7]) shape in a figure, which I generate using "fill." I'd like the border to be set to invisible/the color of the shape/white, whichever is easiest, but I can't find the right property to alter. I've tried:
h=fill(x,y,[.7 .7 .7]); set(h,'Color','w')
...and a few other things like that unsuccessfully. Can anyone help me out with this?
Much appreciated, Jonathan
  댓글 수: 2
Jonathan
Jonathan 2015년 1월 9일
Ack, just finally found the page on Patch object properties. The correct command is set(h,'EdgeColor','none')
Glazio
Glazio 2017년 7월 5일
Another way to make the border white is to set 'LineStyle','none'!

댓글을 달려면 로그인하십시오.

채택된 답변

Claudia Teresa Canedo Rosso
Claudia Teresa Canedo Rosso 2017년 11월 1일
편집: Claudia Teresa Canedo Rosso 2017년 11월 1일
fill(X,Y,[0.7 0.7 0.7],'LineStyle','none');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by