AxisObject[path]
is a Graphics primitive that represents an axis with a quantitative scale along the path path.
AxisObject[path,scale]
uses the scale specified by scale.
Details and Options
Examples
Basic Examples
Scope
Axis Placement and Scales
Tick Placement
Options
AxisLabel
AxisStyle
BaseStyle
LabelStyle
TickDirection
TickLabels
TickLabelOrientation
TickLabelPositioning
TickLengths
TickPositions
TicksStyle
Applications
See Also
Related Guides
History
Cite this Page
AxisObject
AxisObject[path]
is a Graphics primitive that represents an axis with a quantitative scale along the path path.
AxisObject[path,scale]
uses the scale specified by scale.
Details and Options
- AxisObject[…] represents a generalized axis that can be placed in arbitrary graphics.
- An axis consists of a path, which determines where the axis is drawn; the scale, which controls how coordinates in the graphic are mapped to values along the path; and options that affect the detailed appearance of the axis, ticks and labels.
- Possible settings for path include:
-
{pt1,pt2} axis through the points pt1 and pt2 {"Horizontal",y0} horizontal axis through 
{"Horizontal",y0,{xmin,xmax}} horizontal axis from
to 
{"Vertical",x0} vertical axis through 
{"Vertical",x0,{ymin,ymax}} vertical axis from
to 
InfiniteLine[{pt1,pt2}] infinite axis through points pt1 and pt2 InfiniteLine[pt,v] infinite axis passing through the point pt in the direction v Line[{pt1,pt2}] finite axis from point pt1 to point pt2 Line[{pt1,…,ptn}] curve axis from point pt1 to point ptn HalfLine[{pt1,pt2}] half-axis from the point pt1 through pt2 HalfLine[pt,v] half-axis from point pt in the direction v BSplineCurve[…] axis along the given B-spline curve BezierCurve[…] axis along the given Bézier curve Circle[…] axis along the given circle or arc - Infinite forms of axes draw to the edges of the graphic.
- By default, "Horizontal" and "Vertical" axes use the natural scale where the axis values correspond to the vertical and horizontal components of the underlying graphics coordinates.
- Possible settings for scale include:
-
{val1,val2} use val1 at the start of the axis and val2 at the end {loc1val1,loc2val2} use val1 and val2 at locations loc1 and loc2 - For infinite axes, the "start" and "end" points are taken to be pt1 and pt2.
- For "Horizontal" and "Vertical" axes, the locations loci can be specified as x and y coordinates.
- The locations loci used to define the value scale for an axis do not have to be visually present in the graphic.
- If the location loci is not on the axis, it will be projected to the nearest point that is.
- Possible options for AxisObject are:
-
AxisLabel None how to label the axis AxisStyle {} how to style the axis path BaseStyle {} general style for the axis LabelStyle {} how to style labels RotateLabel