File size: 513 Bytes
6ff8026
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
custom_palette = [
    "#636EFA",  # Blue
    "#EF553B",  # Red
    "#00CC96",  # Green
    "#AB63FA",  # Purple
    "#FFA15A",  # Orange
    "#19D3F3",  # Cyan
    "#FF6692",  # Pink
    "#B6E880",  # Light Green
    "#FF97FF",  # Magenta
    "#FECB52",  # Yellow
]


def apply_custom_palette():
    import matplotlib.pyplot as plt
    import seaborn as sns

    # Set globally for matplotlib and seaborn
    plt.rcParams["axes.prop_cycle"] = plt.cycler(color=custom_palette)
    sns.set_palette(custom_palette)