Exemplo n.º 1
0
def radialchart(nodes, edgelist):
    ids, times, relevances = nodes.T
    times *= 2
    node_x, node_y = _radial_layout(nodes)
    nodepos = np.asarray((node_x, node_y)).T
    hold()
    circle(node_x, node_y, color="red", size=relevances * 4, alpha=relevances)
    coords = nodepos[edgelist].reshape((len(edgelist), 4)).T
    segment(coords[0], coords[1], coords[2], coords[3], line_alpha=0.35)
Exemplo n.º 2
0
def radialchart(nodes, edgelist):
    ids, times, relevances = nodes.T
    times *= 2
    node_x, node_y = _radial_layout(nodes)
    nodepos = np.asarray((node_x, node_y)).T
    hold()
    circle(node_x, node_y, color="red", size=relevances*4, alpha=relevances)
    coords = nodepos[edgelist].reshape((len(edgelist), 4)).T
    segment(coords[0], coords[1], coords[2], coords[3],
            line_alpha=0.35)
Exemplo n.º 3
0
def crawlchart(nodes, edgelist):
    """ edges is an Nx2 array of node ids 
    """
    ids, times, relevances = nodes.T
    times *= 2
    node_y = _rectilinear_layout(nodes)
    hold()
    #circle(times, node_y, color="gray", size=1)

    # Draw the relevant points in a different color
    circle(times, node_y, color="red", size=relevances * 6, alpha=relevances)

    nodepos = np.asarray((times, node_y)).T
    coords = nodepos[edgelist].reshape((len(edgelist), 4)).T
    segment(coords[0], coords[1], coords[2], coords[3], line_alpha=0.35)
Exemplo n.º 4
0
def crawlchart(nodes, edgelist):
    """ edges is an Nx2 array of node ids 
    """
    ids, times, relevances = nodes.T
    times *= 2
    node_y = _rectilinear_layout(nodes)
    hold()
    #circle(times, node_y, color="gray", size=1)

    # Draw the relevant points in a different color
    circle(times, node_y, color="red", size=relevances*6, alpha=relevances)

    nodepos = np.asarray((times,node_y)).T
    coords = nodepos[edgelist].reshape((len(edgelist), 4)).T
    segment(coords[0], coords[1], coords[2], coords[3],
            line_alpha=0.35)