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:

LabelStyle settings override TicksStyle settings when styling tick labels:

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

TicksStyle settings override AxesStyle settings when styling ticks and tick labels:

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

Frame ticks are not affected by TicksStyle:

Use FrameTicksStyle instead:

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

Text

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

CMS

Wolfram Language. 2007. "TicksStyle." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/TicksStyle.html.

APA

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

BibTeX

@misc{reference.wolfram_2024_ticksstyle, author="Wolfram Research", title="{TicksStyle}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/TicksStyle.html}", note=[Accessed: 08-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_ticksstyle, organization={Wolfram Research}, title={TicksStyle}, year={2008}, url={https://reference.wolfram.com/language/ref/TicksStyle.html}, note=[Accessed: 08-December-2024 ]}