plotting.py 文件源码

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

项目:pytfa 作者: EPFL-LCSB 项目源码 文件源码
def plot_histogram(values, **kwargs):
    """
    Convenience function. Plots a histogram of flat 1D data.

    :param tmodel:
    :param solution:
    :return:
    """


    hist, edges = np.histogram(values, **kwargs)

    p1 = figure(tools="save")

    p1.quad(top=hist, bottom=0, left=edges[:-1], right=edges[1:],
            fill_color="#036564", line_color="#033649")


    return p1
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号