data.py 文件源码

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

项目:afDist 作者: jsgounot 项目源码 文件源码
def get_canva_chromosome(self, chromosome) :
        figure, ax = plt.subplots()
        x, y = [], []
        for posi, snp in sorted(self.data[chromosome].iteritems(), key = lambda x : x[0]) :
            x.append(posi)
            y.append(snp.abhet)

        ax.plot(x, y, 'o', markersize=4, color="black")
        canva = MplCanva(self, chromosome, figure, ax)
        canva.mpl_connect('button_press_event', canva.button_pressed)
        canva.mpl_connect('motion_notify_event', canva.mouse_move)
        canva.mpl_connect('button_release_event', canva.button_released)
        self.adjust_layout()
        return canva
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号