LabelStyle

LabelStyle

is an option for formatting and related constructs that specifies the style to use in displaying their label-like elements.

Details

  • Any style specification as used in Style can be used as a setting for LabelStyle.
  • Typical forms of settings include:
  • "style"a named style from the current stylesheets
    {opt1->val1,}a list of explicit option settings
    {"style",opt1->val1,}a named style modified by option settings
  • Color directives such as Red, as well as text specifications such as Bold or Small, can be given in place of options, just as in Style.
  • Giving the option setting LabelStyle->spec is effectively equivalent to replacing the label-like elements of a formatting or related construct by Style[label,spec].
  • Any outside styles not explicitly overridden by settings in LabelStyle will still be used.
  • LabelStyle is effectively applied after DefaultLabelStyle.

Examples

open allclose all

Basic Examples  (2)

Specify overall style of all the label-like elements:

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

Frame labels are affected by LabelStyle:

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

Scope  (2)

Properties & Relations  (4)

Neat Examples  (1)

See Also

Style  BaseStyle  TicksStyle  FrameStyle  DefaultLabelStyle

Introduced in 2007
(6.0)
| Updated in 2008
(7.0)