feat: decouple popularity and weighting in node_color
This commit is contained in:
parent
3ec065aaf9
commit
dee40ebdb6
@ -96,7 +96,9 @@ async def render_sociogram(params: Params):
|
|||||||
nodes = nx.draw_networkx_nodes(
|
nodes = nx.draw_networkx_nodes(
|
||||||
G,
|
G,
|
||||||
pos,
|
pos,
|
||||||
node_color=[v for k, v in G.in_degree(weight="popularity")]
|
node_color=[
|
||||||
|
v for k, v in G.in_degree(weight="popularity" if params.weighting else None)
|
||||||
|
]
|
||||||
if params.popularity
|
if params.popularity
|
||||||
else "#99ccff",
|
else "#99ccff",
|
||||||
edgecolors="#404040",
|
edgecolors="#404040",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user