text ( 0.5, 0.5, "Pressure applied by \n Chelsea FC Women", color = '#dee6ea', va = 'center', ha = 'center', path_effects = path_eff, fontproperties = robotto_regular. text ( 1, 0.5, , va = 'center', ha = 'right', fontsize = 15, fontproperties = robotto_regular. label_heatmap ( bin_statistic, color = '#f4edf0', fontsize = 18, ax = axs, ha = 'center', va = 'center', str_format = ' ', path_effects = path_eff ) # endnote and title axs. heatmap_positional ( bin_statistic, ax = axs, cmap = pearl_earring_cmap, edgecolors = '#22312b' ) labels = pitch. y, statistic = 'count', positional = 'full', normalize = True ) pitch. set_facecolor ( '#1e4259' ) # heatmap and labels bin_statistic = pitch. I usually do this after # I am happy with the chart layout and text placement axis = False, grid_height = 0.84 ) fig. grid ( endnote_height = 0.03, endnote_space = 0, title_height = 0.08, title_space = 0, # Turn off the endnote/title axis. Pitch = VerticalPitch ( pitch_type = 'statsbomb', line_zorder = 2, pitch_color = '#1e4259' ) fig, axs = pitch.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |