graph.py 文件源码

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

项目:twitter-bot-detection 作者: franckbrignoli 项目源码 文件源码
def boxplot(self, values_human, values_bot, title, path):
        fig = plt.figure()
        ax = fig.add_subplot(111)

        ax.yaxis.grid(True)
        ax.set_ylabel(title)

        ax.boxplot([values_human, values_bot], vert=True, patch_artist=True)

        pl.setp(ax, xticks=[1, 2], xticklabels=["Humans", "Bots"])
        pl.savefig(path)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号