Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13311

Re: text table

From Alexei Boulbitch <Alexei.Boulbitch@iee.lu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: text table
Date 2013-01-30 09:25 +0000
Message-ID <keaoup$ah9$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


I need to make a table, but one that uses text with in, not numbers.  How do
I go about this?
Thanks

Hi,
You do the same as in any other table i.e. make a nested list and wrap it by Grid, but put strings as the elements of the list. Below find a table with some styling containing both text cells, cells with numbers and empty ones that I did for my own purpose. Evaluate this:

tableSkinTempNeutral1 = {{"Segment",
    Column[{"Skin temperature", "thin leotard [\[Degree]C]"}],
    Column[{"Skin temperature", "office clothing [\[Degree]C]"}] },
   {"Forehead", 35.8, 34.2},
   {"Cheek", 35.2, "  "},
   {"Front neck", 35.8, ""},
   {"Back neck", 35.4, ""},
   {"Chest", 35.1, 34.5},
   {"Back", 35.3, 34.4},
   {"Abdomen", 35.3, 34.9},
   {"Upper arm", 34.2, 33.5}};

Panel@Grid[tableSkinTempNeutral1, Frame -> All,
  Dividers -> Directive[Gray, Thickness[4]],
  ItemSize -> {Automatic, 2},
  Background -> {None, {LightYellow, {LightBlue, LightOrange}},
    1 -> LightYellow}]


You may also play with Style statements. That is instead of, say, "Forehead" you put Style["Forhead",12,Red,Bold], and so on.

Hope this helps, have fun, Alrexei

Alexei BOULBITCH, Dr., habil.
IEE S.A.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG

Office phone :  +352-2454-2566
Office fax:       +352-2454-3566
mobile phone:  +49 151 52 40 66 44

e-mail: alexei.boulbitch@iee.lu



Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: text table Alexei Boulbitch <Alexei.Boulbitch@iee.lu> - 2013-01-30 09:25 +0000

csiph-web