Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Minor gripe re Table formatting

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69071] Minor gripe re Table formatting
  • From: AES <siegman at stanford.edu>
  • Date: Tue, 29 Aug 2006 03:26:14 -0400 (EDT)
  • Organization: Stanford University
  • Sender: owner-wri-mathgroup at wolfram.com

Table (or TableForm) have no "TableLabel" option, akin to PlotLabel, 
that one can use to put a title or caption above the Table.

So, if you want to put a Table with a superimposed title or caption in a 
single cell, you can try something like

   Print["Title string", TableForm[Table[ --- ]]]

or 

   Print["Title string\n", TableForm[Table[ --- ]]]

The first version (with no "\n"), however, sometimes puts the title 
string above the table, but sometimes places it down and centered to the 
left of the table, depending in an more or less unpredictable fashion on 
the length of the title string and the width of the table.

The second version, however, always insists on putting *two* blank lines 
between the title and the table.  Not exactly a crime against nature -- 
but a TableLabel option could be a handy addition some day.

[And while we're on Labels, PlotLabel and FrameLabel are really 
inconsistent uses of the term "Label", aren't they?]


  • Prev by Date: Re: Beginner--Beginner: Calculating Ave Intensity in a domain of n points
  • Next by Date: Re: Numerical evaluation is Mathematica bottleneck?!
  • Previous by thread: Re: using FindRoot to find multiple answers in a domain?
  • Next by thread: Re: Minor gripe re Table formatting