plots.py 文件源码

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

项目:nxviz 作者: ericmjl 项目源码 文件源码
def draw_nodes(self):
        """
        Draw nodes to screen.
        """
        node_r = 1
        for i, node in enumerate(self.nodes):
            x = self.node_coords['x'][i]
            y = self.node_coords['y'][i]
            color = self.node_colors[i]
            node_patch = patches.Ellipse((x, y), node_r, node_r,
                                         lw=0, color=color, zorder=2)
            self.ax.add_patch(node_patch)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号