GraphicsColumn

GraphicsColumn[{g1, g2, ...}]
generates a graphic in which the are laid out in a column, with above , etc.

GraphicsColumn[list, alignment]
aligns each element horizontally in the specified way.

GraphicsColumn[list, alignment, spacing]
leaves the specified spacing between successive elements.

Details and OptionsDetails and Options

  • The output from GraphicsColumn can be interactively resized, or edited as a graphic.
  • Possible alignments are:
  • Centercentered
    Leftleft justified (default)
    Rightright justified
    Fullstretched if possible to full width
    Automaticalignment points of successive items aligned
  • GraphicsColumn will by default make all items the same height, preserving individual aspect ratios for graphics, and leaving space if necessary.
  • Possible overall spacings between items are:
  • han absolute number of printer's points
    Scaled[s]a fraction s of the height of an item
  • The default spacing used by GraphicsColumn is effectively Scaled[0.1].
  • The can be any expressions, not just graphics.
  • The following options can be given:
  • Alignment{Center,Center}horizontal and vertical alignment of elements
    AspectRatioAutomaticratio of height to width for the whole column
    BackgroundNonewhat background colors to use
    BaselinePositionAutomaticwhat to align with a surrounding text baseline
    BaseStyle{}base style specifications for the column
    DividersNonewhere to draw divider lines in the column
    FrameNonewhere to draw frames in the column
    FrameStyleAutomaticstyle to use for frames
    ImageSizeAutomaticoverall size of the whole graphics column
    SpacingsScaled[0.1]horizontal and vertical spacings
  • Common settings for Frame include:
  • Noneno frame
    Trueframe around the whole column
    Allframe around every item in the column
  • GraphicsColumn[list, alignment] is equivalent to Column[list, Alignment->alignment].
  • GraphicsColumn[list, alignment, spacing] corresponds to the setting Spacings->spacing.
  • Background can be a list giving settings for each item in the column.
  • Settings for the options Alignment, Background, and Frame can be given as follows to apply separately to successive items in the column:
  • {s1,s2,...,sn}use through , then use defaults
    {{c}}use c in all cases
    {{c1,c2}}alternate between and
    {{c1,c2,...}}cycle through all
    {s,{c}}use s, then repeatedly use c
    {s1,{c},sn}use , then repeatedly use c, but use at the end
    {s1,s2,...,{c1,c2,...},sm,...,sn} use the first sequence of at the beginning, then cyclically use the , then use the last sequence of at the end
    {s1,s2,...,{},sm,...,sn}use the first sequence of at the beginning and the last sequence at the end
    {i1->v1,i2->v2,...}specify what to use at positions
    {spec,rules}use rules to override specifications in spec
  • With settings of the form , if there are more specified than items in the column, from the beginning are used for the first items, and ones from the end are used for the last items.
  • Settings such as Alignment, Background, and Frame can effectively be specified for individual items in the column using Item.
  • For a column of n elements, Dividers and Spacings can specify settings for the gaps between elements, starting before the first element, and ending after the last element.
  • Settings for Dividers and Spacings can have the following forms:
  • specapply spec to all gaps between items
    {specx,specy}apply to successive horizontal and vertical gaps
  • The can have the same forms as for Alignment, Background, and other item-oriented options.
  • The following settings can be used for BaselinePosition:
  • Axisaxis of the middle row in the column (default)
    Baselinebaseline of the middle row in the column
    Bottombottom of the whole column
    Centerhalfway from top to bottom
    Toptop of the whole column
    {i,pos}position pos in element i
  • The settings for BaseStyle are appended to the default style typically given by the style in the current stylesheet.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Display graphics in a column:

In[1]:=
Click for copyable input
Out[1]=

Put a frame around every element:

In[1]:=
Click for copyable input
Out[1]=
New in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »