Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Problem with Alignment in Center and "."

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125777] Re: Problem with Alignment in Center and "."
  • From: Rodrigo Murta <murta at rodrigomurta.com>
  • Date: Mon, 2 Apr 2012 04:23:09 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <jl3v90$3on$1@smc.vnet.net>

On Mar 30, 6:44 am, Scott Colwell <scolw... at 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



  • Prev by Date: Mathematica 8 3D Plot question
  • Next by Date: Re: Facegrids at ticks
  • Previous by thread: Re: Mathematica 8 3D Plot question
  • Next by thread: Re: Facegrids at ticks