inner_circle_size=0.4, # size of inner circle ) # plot pizza fig, ax = baker.make_pizza( values, # list of values figsize=(8, 8), # adjust figsize according to your need color_blank_space="same", # use same color to fill blank space blank_alpha=0.4, # alpha for blank-space colors param_location=5.5, # where the parameters will be added kwargs_slices=dict( facecolor="cornflowerblue", edgecolor="#F2F2F2", zorder=2, linewidth=1 ), # values to be used when plotting slices kwargs_params=dict( color="#000000", fontsize=12, fontproperties=font_normal.prop, va="center" ), # values to be used when adding parameter kwargs_values=dict( color="#000000", fontsize=12, fontproperties=font_normal.prop, zorder=3, bbox=dict( edgecolor="#000000", facecolor="cornflowerblue", boxstyle="round,pad=0.2", lw=1 ) ) # values to be used when adding parameter-values ) # add title fig.text( 0.515, 0.97, "Player Name - Team Name", size=18,
fig, ax = baker.make_pizza( values, # list of values compare_values=values_2, # passing comparison values figsize=(8, 8), # adjust figsize according to your need color_blank_space="same", # use same color to fill blank space blank_alpha=0.4, # alpha for blank-space colors param_location=110, # where the parameters will be added kwargs_slices=dict( facecolor="#1A78CF", edgecolor="#000000", zorder=1, linewidth=1 ), # values to be used when plotting slices kwargs_compare=dict( facecolor="#ff9300", edgecolor="#222222", zorder=3, linewidth=1, ), # values to be used when plotting comparison slices kwargs_params=dict( color="#F2F2F2", fontsize=12, zorder=5, fontproperties=font_normal.prop, va="center" ), # values to be used when adding parameter kwargs_values=dict( color="#000000", fontsize=12, fontproperties=font_normal.prop, zorder=3, bbox=dict( edgecolor="#000000", facecolor="#1A78CF", boxstyle="round,pad=0.2", lw=1 ) ), # 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 )
inner_circle_size=20 # size of inner circle ) # plot pizza fig, ax = baker.make_pizza( values, # list of values figsize=(8, 8.5), # adjust figsize according to your need color_blank_space="same", # use same color to fill blank space slice_colors=slice_colors, # color for individual slices value_colors=text_colors, # color for the value-text value_bck_colors=slice_colors, # color for the blank spaces blank_alpha=0.4, # alpha for blank-space colors kwargs_slices=dict(edgecolor="#F2F2F2", zorder=2, linewidth=1), # values to be used when plotting slices kwargs_params=dict(color="#000000", fontsize=11, fontproperties=font_normal.prop, va="center"), # values to be used when adding parameter kwargs_values=dict( color="#000000", fontsize=11, fontproperties=font_normal.prop, zorder=3, bbox=dict(edgecolor="#000000", facecolor="cornflowerblue", boxstyle="round,pad=0.2", lw=1)) # values to be used when adding parameter-values ) # add title fig.text(0.515, 0.975,
fig, ax = baker.make_pizza( values, # list of values compare_values=values_2, # comparison values figsize=(8, 8), # adjust figsize according to your need kwargs_slices=dict(facecolor="#1A78CF", edgecolor="#222222", zorder=2, linewidth=1), # values to be used when plotting slices kwargs_compare=dict( facecolor="#FF9300", edgecolor="#222222", zorder=2, linewidth=1, ), kwargs_params=dict(color="#000000", fontsize=12, fontproperties=font_normal.prop, va="center"), # values to be used when adding parameter kwargs_values=dict( color="#000000", fontsize=12, fontproperties=font_normal.prop, zorder=3, bbox=dict( edgecolor="#000000", facecolor="cornflowerblue", 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 )