kde.py 文件源码

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

项目:astetik 作者: mikkokotila 项目源码 文件源码
def kde(x,y,title='',color='YlGnBu',xscale='linear',yscale='linear'):

    sns.set_style('white')
    sns.set_context('notebook', font_scale=1, rc={"lines.linewidth": 0.5})
    g = sns.kdeplot(x,y,shade=True, cut=2, cmap=color, shade_lowest=False, legend=True, set_title="test")
    plt.tick_params(axis='both', which='major', pad=10)
    sns.plt.title(title)

    g.set(xscale=xscale)
    g.set(yscale=yscale)

    sns.despine()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号