Beispiel #1
0
        )
    ),                           # values to be used when adding parameter-values
    kwargs_compare_values=dict(
        color="#000000", fontsize=12,
        fontproperties=font_normal.prop, zorder=3,
        bbox=dict(
            edgecolor="#000000", facecolor="#FF9300",
            boxstyle="round,pad=0.2", lw=1
        )
    )                            # values to be used when adding comparison-values
)


# adjust the texts
# to adjust text for comparison-values-text pass adj_comp_values=True
baker.adjust_texts(params_offset, offset=-0.17)

# add title
fig_text(
    0.515, 0.99, "<Player 1> vs <Player 2>",
    size=16, fig=fig,
    highlight_textprops=[{"color": '#1A78CF'}, {"color": '#FF9300'}],
    ha="center", fontproperties=font_bold.prop, color="#F2F2F2"
)

# add credits
CREDIT_1 = "dummy data"
CREDIT_2 = "inspired by: @Worville, @FootballSlices, @somazerofc & @Soumyaj15209314"

fig.text(
    0.99, 0.005, f"{CREDIT_1}\n{CREDIT_2}", size=9,
            boxstyle="round,pad=0.2",
            lw=1)),  # values to be used when adding parameter-values labels
    kwargs_compare_values=dict(
        color="#000000",
        fontsize=12,
        fontproperties=font_normal.prop,
        zorder=3,
        bbox=dict(
            edgecolor="#000000",
            facecolor="#FF9300",
            boxstyle="round,pad=0.2",
            lw=1)),  # values to be used when adding parameter-values labels
)

# adjust text for comparison-values-text
baker.adjust_texts(params_offset, offset=-0.17, adj_comp_values=True)

# add title
fig_text(0.515,
         0.99,
         "<Player 1> vs <Player 2>",
         size=17,
         fig=fig,
         highlight_textprops=[{
             "color": '#1A78CF'
         }, {
             "color": '#EE8900'
         }],
         ha="center",
         fontproperties=font_bold.prop,
         color="#000000")