main.py 文件源码

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

项目:house-price-map 作者: andyljones 项目源码 文件源码
def plot_relative_price(relative_prices):
    plot_over_map(10**relative_prices, norm=LogNorm(0.5, 2))
    cb = plt.colorbar(fraction=0.03, ticks=sp.linspace(0.5, 2, 4), format=FormatStrFormatter('x%.2f'))
    cb.set_label('fraction of average price paid for commute time')

    plt.title('Price relative to commute')
    plt.gcf().set_size_inches(36, 36)
    plt.gcf().savefig(os.path.join(OUTPUT_PATH, 'relative_price.png'), bbox_inches='tight')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号