How to make the color in the "highlight" function stronger and well defined (not pale/transparent as by default) ?

조회 수: 1 (최근 30일)
Hi, it looks like that the highlight function gives a bit pale/transparent color, as shown in this figure:
s = [1 1 1 1 1 1 2 3 4 5 6 7 7 7 7 8 9 10 11 8 6];
t = [2 3 4 5 6 7 3 4 5 6 2 8 9 10 11 10 10 11 8 1 11];
G = graph(s,t);
h = plot(G)
[T,p] = minspantree(G);
highlight(h,T,'EdgeColor','r','LineWidth',1.5)
Is there any way to make the color from highlight stronger and well defined (i.e. not semi-transparent)?

채택된 답변

Christine Tobler
Christine Tobler 2021년 8월 20일
Set
h.EdgeAlpha = 1;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Networks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by