1

does anyone know if it's possible to generate such plots in matplotlib? the image is taken from the following page. If not, there another 'python' solution to generate such plots?

DSM
  • 342,061
  • 65
  • 592
  • 494
dimka
  • 4,301
  • 11
  • 31
  • 36

1 Answers1

5

You want to use the packange networkx which will take care of the layout and plotting (via matplotlib if you want).

tacaswell
  • 84,579
  • 22
  • 210
  • 199
  • do you know if arrows can be drawn as well using the networkx/matplotlib? http://networkx.lanl.gov/archive/networkx-1.0rc1/examples/drawing/node_colormap.html – dimka Apr 25 '13 at 22:55
  • If it isn't built in, it is easy to do with annotate. See http://stackoverflow.com/questions/14938541/how-to-improve-the-label-placement-for-matplotlib-scatter-chart-code-algorithm/15859652#15859652 for how to get the node locations out of a network. – tacaswell Apr 25 '13 at 23:10