Ticks

Ticks

is an option for graphics functions that specifies tick marks for axes.

Details

  • The following settings can be given for Ticks:
  • Noneno tick marks drawn
    Automatictick marks placed automatically
    {xticks,yticks,}tick mark options specified separately for each axis
  • With the Automatic setting, tick marks are usually placed at points whose coordinates have the minimum number of digits in their decimal representation.
  • For each axis, the following tick mark options can be given:
  • Noneno tick marks drawn
    Automatictick mark positions and labels chosen automatically
    {x1,x2,}tick marks drawn at the specified positions
    {{x1,label1},{x2,label2},}tick marks drawn with the specified labels
    {{x1,label1,len1},}tick marks with specified scaled length
    { { x 1 , label 1 , { plen 1 , mlen 1 } } , }
    tick marks with specified lengths in the positive and negative directions
    {{x1,label1,len1,style1},}tick marks with specified styles
    funca function to be applied to xmin, xmax to get the tick mark specification
  • If no explicit labels are given, the tick mark labels are given as the numerical values of the tick mark positions.
  • Any expression can be given as a tick mark label.
  • Tick mark lengths are given as a fraction of the distance across the whole plot.
  • Tick mark styles can involve any graphics directives.
  • The tick mark function func[xmin,xmax] may return any other tick mark option.
  • Ticks can be used in both two- and three-dimensional graphics.
  • AbsoluteOptions gives the explicit form of Ticks specifications when Automatic settings are given.
  • TicksStyle gives default styles to use for tick marks and tick mark labels.

Examples

open allclose all

Basic Examples  (4)

Draw the axes but no tick marks:

Place tick marks automatically:

Place tick marks at specific positions:

Specify overall ticks style, including the tick labels, using TicksStyle:

Scope  (8)

Ticks Positions and Labeling  (3)

Place ticks on the axis only:

Place ticks on the axis only:

Draw tick marks at the specified positions:

Draw tick marks at the specified positions with the specified labels:

Ticks Styling  (5)

Specify tick marks with scaled lengths:

Specify tick marks with scaled lengths in positive and negative directions:

Specify the style of each tick mark:

Specify overall ticks style, including tick labels, using TicksStyle:

Specify ticks style for each axis:

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

Generalizations & Extensions  (1)

Specify a grid function applied to xmin and xmax values of each direction:

Applications  (1)

Put a major tick with a label at each integer, and a minor tick in between:

Properties & Relations  (7)

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:

FrameTicks controls the ticks and tick labels on the frame edges:

GridLines puts grids across the image:

FaceGrids puts grids on the faces of the bounding box in 3D:

Possible Issues  (1)

A tick label on the axes origin is not displayed:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_ticks, organization={Wolfram Research}, title={Ticks}, year={2007}, url={https://reference.wolfram.com/language/ref/Ticks.html}, note=[Accessed: 18-November-2024 ]}