plots.py 文件源码

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

项目:ABtests 作者: leodema 项目源码 文件源码
def myplot(x, y):
    x, y = np.array(x), np.array(y)

    # bins = np.linspace(-10, 10, 100)
    x1 = sns.kdeplot(x, shade=True)
    x2 = sns.kdeplot(y, shade=True)
    x1.set_xlabel('Value')
    x2.set_ylabel('Percentage')
    # pyplot.hist(x, bins, alpha=0.5, label='x')
    # pyplot.hist(y, bins, alpha=0.5, label='y')

    pyplot.legend(loc='upper right')
    pyplot.title('Cumulative distributions')
    pyplot.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号