'grad_draw' is not defined
Dear all I compiled graph-tool 2.19 with gcc 5.4 on linux, when I try to use it from graph_tool.all import * g = Graph() v1 = g.add_vertex() v2 = g.add_vertex() e = g.add_edge(v1, v2) graph_draw(g, vertex_text=g.vertex_index, vertex_font_size=18,output_size=(200, 200), output="test.png") I get the error: Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'grad_draw' is not defined any suggestion is welcome regards Claudio -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 30.11.2016 10:14, attacc wrote:
Dear all
I compiled graph-tool 2.19 with gcc 5.4 on linux, when I try to use it
from graph_tool.all import * g = Graph() v1 = g.add_vertex() v2 = g.add_vertex() e = g.add_edge(v1, v2) graph_draw(g, vertex_text=g.vertex_index, vertex_font_size=18,output_size=(200, 200), output="test.png")
I get the error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'grad_draw' is not defined
any suggestion is welcome
Do you see any warnings when you import graph-tool? -- Tiago de Paula Peixoto <tiago@skewed.de>
No, any warnings I also tried to check if Cairo is working, and it is fine cla -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 30.11.2016 10:20, Tiago de Paula Peixoto wrote:
Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'grad_draw' is not defined
I just noticed that the function name is misspelled, and that the error does not match the code you sent. -- Tiago de Paula Peixoto <tiago@skewed.de>
you are right sorry for this stupid post claudio -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
participants (2)
-
attacc -
Tiago de Paula Peixoto