Question

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?

Was it helpful?

Solution

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')
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top