Skip to content

Commit

Permalink
Merge pull request #12 from dalager/10-grey-colors-in-tab20c-colormap…
Browse files Browse the repository at this point in the history
…-is-blending-with-grey-lines

Change to tab20b colormap which has no grays
  • Loading branch information
dalager authored Oct 9, 2024
2 parents 74ac8ad + af75d72 commit 3eaa94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphedexcel/graph_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_graph_default_settings(graph_size):
# Function to get colors and generate legend for sheets
def get_node_colors_and_legend(graph):
sheets = {data.get("sheet", "Sheet1") for _, data in graph.nodes(data=True)}
color_map = cm.get_cmap("tab20c", len(sheets))
color_map = cm.get_cmap("tab20b", len(sheets))

# Map sheet names to colors
sheet_to_color = {sheet: color_map(i) for i, sheet in enumerate(sheets)}
Expand Down

0 comments on commit 3eaa94b

Please sign in to comment.