diff --git a/sources/graphics_chart_drawer.py b/sources/graphics_chart_drawer.py index 6d48d188..41306461 100644 --- a/sources/graphics_chart_drawer.py +++ b/sources/graphics_chart_drawer.py @@ -42,7 +42,7 @@ async def create_loc_graph(yearly_data: Dict, save_path: str): cumulative = zeros((years, 4, 2), dtype=int) for key, value in languages_all_loc.items(): - color = colors[key]["color"] if colors[key]["color"] is not None else "w" + color = colors[key].get("color", "tab:gray") language_handles += [mpatches.Patch(color=color, label=key)] for quarter in range(4):