Skip to content

Commit

Permalink
🎨 plot labels
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRossetti committed Feb 19, 2021
1 parent c48bdf4 commit 7731726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdlib/viz/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def plot_network_clusters(graph, partition, position=None, figsize=(8, 8), node_
fig.set_edgecolor('k')
nx.draw_networkx_edges(graph, position, alpha=.5, edgelist=filtered_edgelist)
if plot_labels:
nx.draw_networkx_labels(graph, position, font_color=".2",
nx.draw_networkx_labels(graph, position, font_color=".8",
labels={node: str(node) for node in filtered_nodelist})
for i in range(n_communities):
if len(partition[i]) > 0:
Expand Down

0 comments on commit 7731726

Please sign in to comment.