예제 #1
0
def comp_graph_embed():
    output = ADgraph.draw_graph2(out_num[visfunc], G[visfunc],
                                 edge_labs[visfunc], pos[visfunc],
                                 labs[visfunc])
    print('entered function')
    #output = io.BytesIO()
    #FigureCanvasSVG(fig).print_svg(output)
    return Response(output.getvalue(), mimetype='image/svg+xml')
예제 #2
0
def comp_graph(i):
    ADgraph.draw_graph2(out_num[i], G[i], edge_labs[i], pos[i], labs[i])