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:
-
None no tick marks drawn Automatic tick marks placed automatically True tick marks placed automatically on bottom and left edges All tick 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:
-
None no tick marks drawn Automatic tick mark positions and labels chosen automatically All automatic 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 func a 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 allBasic Examples (4)
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)
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)
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:
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