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 Kommentare

Jonathan
Jonathan am 9 Jan. 2015
Ack, just finally found the page on Patch object properties. The correct command is set(h,'EdgeColor','none')
Glazio
Glazio am 5 Jul. 2017
Another way to make the border white is to set 'LineStyle','none'!

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Claudia Teresa Canedo Rosso
Bearbeitet: Claudia Teresa Canedo Rosso am 1 Nov. 2017

7 Stimmen

fill(X,Y,[0.7 0.7 0.7],'LineStyle','none');

Weitere Antworten (0)

Kategorien

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by