On Thu, Feb 17, 2011 at 8:04 PM, Chris Smith <[email protected]> wrote: > >> In [8]: TableForm([[5, 7], [4, 2], [10, 3]], >> ...: headings=[["Group A", "Group B", "Group C"], ["y1", >> "y2"]], >> ...: alignment="right") >> Out[8]: >> | y1 y2 >> --------------- >> Group A | 5 7 >> Group B | 4 2 >> Group C | 10 3 >> >> > > I like it! One thing that I do with my ASCII tables is to use what I call a > "flag" label. A wrap option might be nice, too: > default mode: > > h[1] >>> TableForm([["a", "b"], ["c", "d"], ["e", "f"]],headings=(None, > ['this is long', 'y'])) > this is long y > -------------- > a b > c d > e f > > wrap mode > > this is > long y > ---------- > a b > c d > e f > > flag mode > > this is long > | y > ------------ > a b > c d > e f > > wrap/flag mode > > this is > long > | y > --------- > a b > c d > e f > > For more than two columns, flags get progressively lower > > like > | this > | | here > --------- > x y z
I have just send a pull request for TableForm and Array here: https://github.com/sympy/sympy/pull/268 Ondrej -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
