def annotate_polygons(df, df_filter, ax, font_size, annotater):
df[df_filter].apply(
lambda x: ax.annotate(
s=annotater(x),
xy=x['shape'].centroid.coords[0],
ha='center',
va='center',
color=Choroplether.GREY,
fontsize=font_size,
path_effects=[
patheffects.withStroke(linewidth=1, foreground="w")
]
),
axis=1
)
return ax
评论列表
文章目录