Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9315 > unrolled thread
| Started by | Scott Colwell <scolwell@uoguelph.ca> |
|---|---|
| First post | 2012-03-30 09:44 +0000 |
| Last post | 2012-04-02 08:24 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
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
| From | Scott Colwell <scolwell@uoguelph.ca> |
|---|---|
| Date | 2012-03-30 09:44 +0000 |
| Subject | Problem with Alignment in Center and "." |
| Message-ID | <jl3v90$3on$1@smc.vnet.net> |
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
]
[toc] | [next] | [standalone]
| From | Rodrigo Murta <murta@rodrigomurta.com> |
|---|---|
| Date | 2012-04-02 08:24 +0000 |
| Message-ID | <jlbno5$444$1@smc.vnet.net> |
| In reply to | #9315 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web