Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9360
| From | Rodrigo Murta <murta@rodrigomurta.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Problem with Alignment in Center and "." |
| Date | 2012-04-02 08:24 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jlbno5$444$1@smc.vnet.net> (permalink) |
| References | <jl3v90$3on$1@smc.vnet.net> |
On Mar 30, 6:44 am, Scott Colwell <scolw...@uoguelph.ca> wrote:
> I need to have a grid where the number contents are centered horizontally and vertically at the decimal point. I seem to be able to center them or align them with "." but not both at the same time. Does anyone know how to do this? Here is an example.
>
> Grid[{
> {"A", "B", "C", "D"},
> {"A1", 13.5, 9.01, 7.89},
> {"A2", 12, 9, 8.3891},
> {"A3", 213.645, 6.555, 7.89},
> {"A4", 13.64250, 3, 7.8769}
> }, ItemSize -> 4, Spacings -> {4, 2}, Frame -> All
> ]
have you tried Alignment -> "."?
Grid[{{"A", "B", "C", "D"}, {"A1", 13.5, 9.01, 7.89}, {"A2", 12, 9,
8.3891}, {"A3", 213.645, 6.555, 7.89}, {"A4", 13.64250, 3,
7.8769}}, ItemSize -> 4, Spacings -> {4, 2}, Frame -> All,
Alignment -> "."]
best regards
Murta
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Problem with Alignment in Center and "." Scott Colwell <scolwell@uoguelph.ca> - 2012-03-30 09:44 +0000 Re: Problem with Alignment in Center and "." Rodrigo Murta <murta@rodrigomurta.com> - 2012-04-02 08:24 +0000
csiph-web