Fluoborate <[EMAIL PROTECTED]> writes: > My choice now is essentially this: What tool will I use to draw the > graphs? Some modules make interactive graphs, some have more features, > some have better documentation. Hmmm...
I've used pygdchart2, pychart, and pygooglechart. pygdchart2: - appears to be unmaintained, though still available in Ubuntu, FreeBSD, etc. - the web site/repo doesn't exist any more, but you can read the examples, libgdchart's docs, and pygdchart2's code (easy to follow) and figure out what you want to do. - cannot write to a StringIO object, must write to a file pychart: - it, too, appears unmaintained, though its website is around, and has detailed documentation. - I can tell it to generate a chart of size, say, 320x200, but that doesn't include the legend or axes. consequently, the image can be of variable size, and I can't use width/height attributes in my img tags. the author originally wrote it to generate charts for written papers, not for the web. - it uses ghostscript to generate png files. sometimes, somehow, the PS it generates causes gs to chew cpu until I kill the process. pygooglechart: - 0.1.x didn't do x-axis label autoscaling like in my pygdchart2 example. I haven't tried making such a chart for 0.2.x. - I had trouble with its y-axis autoscaling in 0.1.x; 0.2.x has apparently fixed that problem. - gives you the option of generating a url that you can pass on to the browser (saves you bandwidth), or downloading the chart from Google, and serving it to the user (lets you cache the chart/serve faster). - docs? what docs? read the code/examples, skim the Google Chart API. I'd like to move to pygooglechart, wherever possible. The nice thing about it is that even if you run into a situation where pygooglechart doesn't do the right thing, you can use the Google Chart API directly. The API is just a specially-formatted URL, so it's extremely easy to develop with (paste a url into your browser). Faried. -- (> (length "eclipse") (length "emacs")) => T
pgpKxT6ia7ZEB.pgp
Description: PGP signature
