开发者

How to draw a 2D graph in Python - horizontal bars

I would like to make graph like this in Python:

How to draw a 2D graph in Python - horizontal bars

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜