MathGroup Archive 2008

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

Search the Archive

Re: Grid and SpanFromLeft

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87711] Re: Grid and SpanFromLeft
  • From: Albert Retey <awnl at arcor.net>
  • Date: Wed, 16 Apr 2008 05:00:44 -0400 (EDT)
  • References: <fu1u5r$oo9$1@smc.vnet.net>

Steve Gray wrote:
> I'm using Grid to show some parameters as follows (Fixed-width font):
> 
> ptedgeL ptfaceL ptsphrL                                    ttencl
> 10      10      5                                          3
> ptvertS3=     {{-75, -51, -45}, {27, 30, -9}}
> ptvertS4=     {{-32, -69, -57}, {-31,-31,59},{-21,56,-46}}
> 
> I thought using SpanFromLeft could bring the ttencl and its value of 3
> leftward near the ptsphrL so I could display more parameters on the
> first two lines above the lists, but it did not do that in any of the
> ways I tried. (Actually I have more Grid cells at the left of all the
> lines, but this email can't be that wide.) The Help isn't totally
> clear. Thanks for any tips.
> 
> Steve Gray
> 

Is this what you are looking for?

Grid[{
   {ptedgeL , ptfaceL, ptsphrL, ttencl},
   {10, 10, 5, 3},
   {"ptvertS3=", {{-75, -51, -45}, {27, 30, -9}}, SpanFromLeft,
    SpanFromLeft},
   {"ptvertS4=", {{-32, -69, -57}, {-31, -31, 59}, {-21, 56, -46}},
    SpanFromLeft, SpanFromLeft}
   },
  Dividers -> All,
  Alignment -> Left
  ]

I find it very useful to include the Dividers->All option to better 
understand what Grid does, even if I might decide to remove it in the 
end for aesthetic reasons...

hth,

albert


  • Prev by Date: Re: Re: Malformed Fractions in a PDF file
  • Next by Date: Re: Numerical integration and list of points
  • Previous by thread: Re: Grid and SpanFromLeft
  • Next by thread: bar charts, frame ticks, and error bars