This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

BaselinePosition

BaselinePosition
is an option that specifies where the baseline of an object is considered to be for purposes of alignment with surrounding text or other expressions.
  • BaselinePosition->pos specifies that position pos in an object should align with the baseline of surrounding text or other expressions.
Automaticdefault object baseline
Bottombottom of object
Toptop of object
Centerhalfway between top and bottom
Axisaxis of the object
Baselinebaseline of the first text line
Scaled[y]fraction y of the height of the object
ibaseline of row i in a grid
{i,j}baseline of element i,j in a grid
{{i,j},pos}position pos in element i,j
pos->refbaseline offset to make pos be aligned with ref
  • Scaled corresponds to the bottom of the object; Scaled to the top. If y is outside the range 0 to 1, Scaled[y] gives a baseline that lies outside the object.
  • For objects that contain lines of text, BaselinePosition->Baseline specifies that the baseline of the whole object should be taken to be the baseline of the first line of text.
  • For text, the position of the axis is determined by the placement of or a similar character. For other objects, the axis is taken to be the center, except when a construct such as a fraction bar or graphics axis defines another natural choice.
Align the bottom of a grid with the baseline of the surrounding text:
Align the center of a graphic with the baseline of the text:
Specify the baseline of each cell within a grid:
Align the bottom of a grid with the baseline of the surrounding text:
In[1]:=
Click for copyable input
Out[1]=
 
Align the center of a graphic with the baseline of the text:
In[1]:=
Click for copyable input
Out[1]=
 
Specify the baseline of each cell within a grid:
In[1]:=
Click for copyable input
Out[1]=
Align the center of objects with the baseline of the surrounding text:
Align the top of the grid with the baseline:
Align the bottom of the grid with the baseline:
Specify the baseline of panel as a fraction of the height by using Scaled:
Use the axis of a graphic as the baseline:
Specify the baseline within Row:
Specify the baseline within Grid:
Align a specific grid element with the baseline:
Align the bottom of the grid with the bottom of surrounding text:
Align the center of the grid with the axis of text:
Align the axis of the graphic with the top of the text:
Align graphics at their top:
Align graphics along their axes:
New in 6