feat(plot colors): copied over the config from the other (chaotic) branch where config was wrongfully pushed to
This commit is contained in:
parent
31a70480fb
commit
fe7aecb62a
1 changed files with 9 additions and 11 deletions
|
|
@ -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": "#FCB305", # 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,
|
||||||
|
|
|
||||||
Reference in a new issue