triangulation.py 文件源码

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

项目:HiCembler 作者: lpryszcz 项目源码 文件源码
def plot_dendro(fn, iZ):
    """Plot dendrogram"""
    plt.figure(figsize=(25, 10))
    plt.title('Hierarchical Clustering Dendrogram')
    plt.xlabel('sample index')
    plt.ylabel('distance')
    sch.dendrogram(iZ, leaf_rotation=90., leaf_font_size=8.)
    outfn = "%s.png"%fn
    if type(fn) is str and len(fn.split('.')[-1])==3:
        outfn = fn
    plt.savefig(outfn)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号