choroplether.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:real_estate 作者: cooperoelrichs 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号