I use python-igraph-0.7 on Ubuntu to draw graph. To display the vertex's
text, I add its label attribute . As the text are Chinese characters of
'unicode' type (not 'str' type), I encode them by "UTF-8". But when the
graph is shown, the Chinese characters are show as the small squares,
unreadable codes. The fragment of my code list as follows:
>>> g_labels = [n.encode('utf8') for n in g.vs['name']]
>>> plot(g, mark_groups=True, vertex_label=g_labels)
What's wrong with this?
thanks a lot.
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help