FrameTicks

FrameTicks

is an option for 2D graphics functions that specifies tick marks for the edges of a frame.

Details

  • The following settings can be given for FrameTicks:
  • Noneno tick marks drawn
    Automatictick marks placed automatically
    Truetick marks placed automatically on bottom and left edges
    Alltick marks placed automatically on all edges
    {{left,right},{bottom,top}}tick mark options specified separately for each edge
  • When separate tick mark specifications are given for each edge, All specifies that tick mark labels should be included.
  • Automatic tick marks are usually placed at points whose coordinates have the minimum number of digits in their decimal representation.
  • For each edge, the following tick mark options can be given:
  • Noneno tick marks drawn
    Automatictick mark positions and labels chosen automatically
    Allautomatic positions are labeled
    {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.
  • FrameTicksStyle gives default styles to use for frame tick marks and tick mark labels.
  • Frame ticks are only shown if the frame itself is drawn, as specified by Frame.

Examples

open allclose all

Basic Examples  (4)

Put a frame, but no ticks:

Place frame tick marks and labels automatically:

Place frame tick marks at the specified positions:

Specify overall frame ticks style, including frame tick labels, using FrameTicksStyle:

Scope  (10)

FrameTicks Positions and Labeling  (4)

Place frame ticks and labels on all the edges:

Place frame ticks on the left edge of the frame:

Place frame ticks on the right and top edges:

Draw frame ticks at the specified positions on the right and bottom edges:

Draw frame ticks at the specified positions with the specific labels:

FrameTicks Styling  (6)

Specify frame ticks with scaled lengths:

Specify frame ticks with scaled lengths in positive and negative directions:

Specify the style of each frame tick:

Specify overall frame ticks style, using FrameTicksStyle:

Specify frame ticks style for each edge:

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

Generalizations & Extensions  (1)

Specify a frame ticks function applied to xmin and xmax values for each direction:

Properties & Relations  (6)

FrameTicksStyle affects frame ticks and frame tick labels:

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

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

FrameStyle affects the style of the frame, frame labels, frame ticks, and frame tick labels:

FrameTicksStyle can be used together with FrameStyle and has higher priority:

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

Ticks controls the ticks and tick labels on the axes:

Use DateListPlot to get frame ticks that correspond to date and time:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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