Skip to content

Plot heatmap

set_plot_style()

apply plotting style to all figures

Source code in workflow/scripts/plot_heatmap.py
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
def set_plot_style():
    """apply plotting style to all figures"""
    plt.style.use(
        [
            "classic",
            "seaborn-v0_8-white",
            {
                "axes.grid": False,
                "grid.linestyle": "--",
                "grid.color": "0.6",
                "hatch.color": "white",
                "patch.linewidth": 0.5,
                "font.size": 12,
                "legend.fontsize": "medium",
                "lines.linewidth": 1.5,
                "pdf.fonttype": 42,
            },
        ]
    )