How can I remove the default transparency of graph edges?

7 visualizaciones (últimos 30 días)
Sim
Sim el 11 de Nov. de 2019
Comentada: Sim el 11 de Nov. de 2019
How can I remove the default transparency of graph edges? (I would like bright and clear lines/edges)
Here an example, where edges are a bit transparent:
s = [1 1 2 2 3 4 4 5 5 6 7 7 8 8 9 10 11];
t = [2 4 3 5 6 5 7 6 8 9 8 10 9 11 12 11 12];
weights = [1 5 1 5 5 1 5 1 5 5 1 5 1 5 5 1 1];
G = graph(s,t,weights);
P = plot(G,'LineWidth',G.Edges.Weight);

Respuesta aceptada

Daniel M
Daniel M el 11 de Nov. de 2019
set(P,'EdgeAlpha',1);

Más respuestas (0)

Categorías

Más información sobre Construction en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by