How to draw a 2D graph in Python - horizontal bars
I would like to make graph like this in Python:
I have made the program in C that will give me combinations I need开发者_如何转开发 (here N=2n+|m| iirc), so could I integrate that here somehow?
I made something in Mathematica, but that's a pain in the butt... Any help is appreciated.
I would customize CairoPlot for doing that (http://linil.wordpress.com/2008/09/16/cairoplot-11/ ) -- Cairoplot is a simple and small project to use the powerfull Cairo library to make Graph's. It does have few, although beauutiful, graphic options, but it is entirely made in Python - it should be possible to subclass a graph class from there to generate plots that fit your need.
You could try using step() in matplotlib
http://matplotlib.sourceforge.net/examples/pylab_examples/step_demo.html
精彩评论