analysis.py 文件源码

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

项目:deep-learning-for-genomics 作者: chgroenbech 项目源码 文件源码
def plotHistogram(series, x_label, scale = "linear", normed=False, name = None):

    figure_name = "histogram"

    if name:
        figure_name = name + "_" + figure_name

    figure = pyplot.figure()
    axis = figure.add_subplot(1, 1, 1)

    seaborn.distplot(series, kde = False, norm_hist=normed,ax = axis)

    axis.set_yscale(scale)

    axis.set_xlabel(x_label)
    # axis.set_ylabel(y_label)

    data.saveFigure(figure, figure_name)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号