AxesStyle

AxesStyle

is an option for graphics functions that specifies how axes should be rendered.

Details

  • AxesStyle can be used in both two- and three-dimensional graphics.
  • AxesStyle->style specifies that all axes are to be generated with the specified style.
  • AxesStyle->{xstyle,ystyle,} specifies that axes should use graphics directives xstyle, .
  • Styles can be specified using graphics directives such as Thick, Red, and Dashed as well as Thickness, Dashing, and combinations given by Directive.
  • AxesStyle gives both the style of the axes themselves, and the default style for labels and ticks. TicksStyle overrides specifications for ticks.
  • The default style of axes is specified by the option DefaultAxesStyle.

Examples

open allclose all

Basic Examples  (2)

Specify overall axes style, including the ticks and the tick labels:

Specify the style of each axis:

Scope  (3)

Styles associated with lines affect the axes and ticks:

Styles associated with fonts affect tick labels:

Styles can be combined by Directive:

Generalizations & Extensions  (1)

Use Arrowheads to style the axes:

Properties & Relations  (4)

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

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

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

TicksStyle affects ticks and tick labels, but nothing else:

AxesStyle can be used together with TicksStyle, but has lower priority:

In 3D, BoxStyle is used to specify the styles of the bounding box edges, excluding the axes:

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