Re: Vertical Headers in TableForm or Grid
- To: mathgroup at smc.vnet.net
- Subject: [mg118384] Re: Vertical Headers in TableForm or Grid
- From: Armand Tamzarian <mike.honeychurch at gmail.com>
- Date: Mon, 25 Apr 2011 07:29:16 -0400 (EDT)
- References: <ip14r1$gep$1@smc.vnet.net>
On Apr 24, 10:25 pm, ADL <alberto.dilu... at tiscali.it> wrote:
> Dear all,
> I would like to create column headers of a table as a vertical text.
> In fact, the column headers are long but the cell contents are small,
> so that in this way the table would look better (as normally done e.g.
> in spreadsheets).
> I could not find a way to do it.
> Does anyone know if it is possible and how to achieve this in
> Mathematica 8?
>
> ADL
Use Rotate:
TableForm[{{a, b}, {c, d}, {e, f}},
TableHeadings -> {None, {Rotate["c1", \[Pi]/2], "c2"}}]