plotter.py 文件源码

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

项目:scrape-n-plot 作者: iamsreiche 项目源码 文件源码
def draw_map():
    # colour all polygons for which we have data in evaluated.json
    for shape, info in zip(basemap.berlin, basemap.berlin_info):
        if info['ORT'] in json_data:
            c_ort = json_data[info['ORT']]
            colour = get_colour(c_ort[ARGV])
        else:
            colour = '#dddddd'
        patches = [Polygon(numpy.array(shape), True)]
        pc = PatchCollection(patches)
        pc.set_facecolor(colour)
        ax.add_collection(pc)
    # draw map
    plt.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号