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
Nice! So I will try to finish this pull request soon and send it in. Once it gets in, you can then implement this. This reminds me, that for the Plot() command, one of the output (besides the obvious ones, like html, png, google chart api link) should be ascii art, so that one can at least see something in the console, immediately, there is one example at the bottom of this page: http://www.cs.hmc.edu/~vrable/gnuplot/using-gnuplot.html it exactly fits into my terminal. 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.
