tags:

views:

103

answers:

2

I want to generate comparison tables like this by using Python.

alt text

Can you suggest any library to do this?

+1  A: 

That's surely the output of TeX. It would take all of 60 minutes to learn enough TeX (or, better yet, LaTeX) to spit out tables like that.

Jonathan Feinberg
Sorry for the confusion - but I want to create PNG files (or any kind of image format) that looks like this table. I'm coding a project in Python and I want to create comparison tables of different results by using Python. I don't know how to draw something like a table.
Lyyli
One approach is to output the LaTeX commands you'd use to generate that table, then call LaTeX on your output to generate the table. This is probably overkill, though.
McPherrinM
Yes. If you use LaTeX, following the instructions on the page I link to, you'll get identical results to the image you show. LaTeX is a typesetting system with a textual input. Your program would spit out LaTeX source, and run LaTeX on that source, generating the table as seen in the image above.
Jonathan Feinberg
Thanks, I'll give this a try.
Lyyli
A: 

ReportLab

Ignacio Vazquez-Abrams
why the heavy downvote? From the question, who can really know what is being requested? My guess is the graphical tabular display, but it could be the OP wants to generate random incomprehensible output like that table.
GregS
Yeah, I agree, I've been playing with ReportLab and while it would take some time to learn the syntax and requirements to create a table it is perfect for creating documents with tables such as the example.
Mokubai