Dividers

Dividers

is an option for Grid and related constructs that specifies where and how to draw divider lines.

Details

  • The following basic settings can be given:
  • Alldraw all dividers
    None or Falsedraw no dividers
    {}draw dividers specified by the Frame option
    Truedraw dividers around the exterior only
    Centerdraw dividers between interior items only
    gdraw all dividers using graphics directive g
  • For Grid and related constructs, lists of settings can be given. Common cases include:
  • {All, False}put dividers at every horizontal position (column lines)
    {False, All}put dividers at every vertical position (row lines)
    {{False, True}, False}put a divider before the second column
    {False, {False, True}}put a divider before the second row
  • General settings for Dividers in Grid and related constructs can be given as:
  • {specx,specy}use the speci at successive x and y positions
  • The speci can have the following forms:
  • {s1,s2,,sn}use s1 through sn; then use defaults
    {{c}}use c in all cases
    {{c1,c2}}alternate between c1 and c2
    {{c1,c2,}}cycle through all ci
    {s,{c}}use s, then repeatedly use c
    {s1,{c},sn}use s1, then repeatedly use c, but use sn at the end
    {s1,s2,,{c1,c2,},sm,,sn} use the first sequence of si at the beginning, then cyclically use the ci, then use the last sequence of si at the end
    {s1,s2,,{},sm,,sn}use the first sequence of si at the beginning and the last sequence at the end
    {i1->v1,i2->v2,}specify what to use at positions ik
    {spec,rules}use rules to override specifications in spec
  • The si and ci can be True, False, or an explicit graphics directive.
  • Possible graphics directives include Thick, Thin, Dashed, Dotted, as well as color, thickness and dashing directives, and composite directives specified by Directive.
  • For a grid with n items in a particular direction, Dividers can specify settings for dividers in the gaps between items, starting before the first element, and ending after the last element.
  • Dividers are always placed at the center of the gaps between items.
  • Dividers never extend into items that span rows or columns.

Examples

open allclose all

Basic Examples  (2)

Draw all the interior dividers in a grid:

Put dividers at all horizontal positions:

Scope  (3)

Put dividers at the third horizontal and second vertical positions:

Draw a divider at every other horizontal position:

Include the final position:

Draw dividers with specified styles:

Properties & Relations  (2)

Dividers acts in addition to any Frame specification:

FrameStyle will set the default style for all lines in the grid:

Wolfram Research (2007), Dividers, Wolfram Language function, https://reference.wolfram.com/language/ref/Dividers.html.

Text

Wolfram Research (2007), Dividers, Wolfram Language function, https://reference.wolfram.com/language/ref/Dividers.html.

CMS

Wolfram Language. 2007. "Dividers." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Dividers.html.

APA

Wolfram Language. (2007). Dividers. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Dividers.html

BibTeX

@misc{reference.wolfram_2023_dividers, author="Wolfram Research", title="{Dividers}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/Dividers.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_dividers, organization={Wolfram Research}, title={Dividers}, year={2007}, url={https://reference.wolfram.com/language/ref/Dividers.html}, note=[Accessed: 19-March-2024 ]}