문제

Is it possible to increase the size of graphs generated with networkx? Currently, it always outputs 800x600.

How can I output a graph with a larger radius. Does it depend on my display size?

도움이 되었습니까?

해결책

Example page from NetworkX show that case:

http://networkx.lanl.gov/examples/drawing/circular_tree.html

These lines do square image 800x800px:

plt.figure(figsize=(8,8))
plt.axis('equal')
plt.savefig('circular_tree.png')
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top