TicksStyle

TicksStyle

is an option for graphics functions which specifies how ticks should be rendered.

Details

  • TicksStyle gives styles for both tick marks and tick labels.
  • TicksStyle can be used in both two and three-dimensional graphics.
  • TicksStyle->style specifies that all ticks are to be rendered by default with the specified style.
  • TicksStyle->{xstyle,ystyle,} specifies that ticks on different axes should use styles xstyle, .
  • Styles can be specified using graphics directives such as Thick, Red, and Dashed, as well as Thickness, RGBColor, Dashing, and combinations given by Directive. Styles can also contain rules for options such as FontSize and FontFamily.
  • Style specifications can refer to styles using style names from current stylesheets.
  • Any outside styles not explicitly overridden by settings in TicksStyle will still be used.
  • Explicit styles specified in the setting for Ticks can override styles specified in TicksStyle.
  • The default style of ticks is specified by the option DefaultTicksStyle.

Examples

open allclose all

Basic Examples  (2)

Specify overall ticks style, including the tick labels:

Specify ticks style for each axis:

Scope  (3)

Styles associated with lines affect ticks:

Styles associated with fonts affect tick labels:

Styles can be combined by Directive:

Properties & Relations  (5)

TicksStyle affects ticks and tick labels:

LabelStyle offers overall style of all the label-like elements, including tick labels:

TicksStyle can be used together with LabelStyle and has higher priority:

AxesStyle affects the axes, axes labels, ticks, and tick labels:

TicksStyle can be used together with AxesStyle, and has higher priority:

Individually styled ticks can be used with other styles, and have higher priority:

Frame ticks are not affected by TicksStyle:

Use FrameTicksStyle instead:

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