1
Fork 0

chore: streamline visualisations

This commit is contained in:
Tibo De Peuter 2026-05-15 21:33:55 +02:00
parent 03b1b33974
commit a2173f6407
Signed by: tdpeuter
SSH key fingerprint: SHA256:u/h/LVoqKF1Iz02uOyxe6hcjmoZASCGV2HM0TG9ZMoU
2 changed files with 11 additions and 13 deletions

View file

@ -182,7 +182,7 @@ def plot_grouped_bar(
color="w", color="w",
markerfacecolor=BEST_PERFORMER_COLOR, markerfacecolor=BEST_PERFORMER_COLOR,
markersize=15, markersize=15,
label="Best Performance", # label="Best Performance",
ls="", ls="",
) )
ax.legend(**LEGEND_KWARGS, ncol=len(architectures) + 1) ax.legend(**LEGEND_KWARGS, ncol=len(architectures) + 1)
@ -317,7 +317,7 @@ def plot_grouped_bar_alt(
color="w", color="w",
markerfacecolor=BEST_PERFORMER_COLOR, markerfacecolor=BEST_PERFORMER_COLOR,
markersize=15, markersize=15,
label="Best Performance", # label="Best Performance",
ls="", ls="",
) )
ax.legend(**LEGEND_KWARGS, ncol=len(morphologies) + 1) ax.legend(**LEGEND_KWARGS, ncol=len(morphologies) + 1)

View file

@ -4,26 +4,24 @@ import matplotlib.pyplot as plt
# Shared Color Palette (Colorblind friendly, high contrast) # Shared Color Palette (Colorblind friendly, high contrast)
# Matches poster design # Matches poster design
COLORS = { COLORS = {
"CENTRALIZED": "#2B4162", # Deep Slate Blue "CENTRALIZED": "#0D567C", # Blue
"FULLY_CONNECTED": "#FA9F42", # Vibrant Orange "FULLY_CONNECTED": "#8C0E0F", # Reddish
"RING_LEVEL": "#4E937A", # Muted Teal "RING_LEVEL": "#E1BA6D", # Pale Yellow
"SEGMENT_LEVEL": "#B4436C", # Soft Red
"DECENTRALIZED": "#4E937A", # Default decentralized fallback
} }
def apply_style(font_size=28): def apply_style(font_size=36):
""" """
Applies the shared typography and aesthetic settings to Matplotlib. Applies the shared typography and aesthetic settings to Matplotlib.
""" """
plt.rcParams.update( plt.rcParams.update(
{ {
"font.size": font_size, "font.size": font_size,
"axes.labelsize": font_size + 4, "axes.labelsize": font_size,
"axes.titlesize": font_size + 8, "axes.titlesize": font_size,
"xtick.labelsize": font_size - 4, "xtick.labelsize": font_size,
"ytick.labelsize": font_size - 4, "ytick.labelsize": font_size,
"legend.fontsize": font_size - 6, "legend.fontsize": font_size,
"axes.linewidth": 2, "axes.linewidth": 2,
"axes.spines.top": False, "axes.spines.top": False,
"axes.spines.right": False, "axes.spines.right": False,