The axis is just a scene object, making it easy to manipulate and share between plots. Axis objects also contains the mapping you want to apply to the data and can interactively be changed. An Axis object can be created from any boundingbox and inserted into any plot.
There are two types of axes: Axis2D
and Axis3D
.
One can quite easily interact with the attributes of the axis like with any other plot.
You can access the axis of a scene
by doing
axis = scene[Axis]
The axis attributes are nested, and there are different attributes depending on whether it is an Axis2D
or Axis3D
object.
You can access the nested attributes in multiple ways. Take the nested attribute axis -> :names -> :axisnames
, for example:
axis[:names, :axisnames] = ("x", "y", "z")
axis[:names][:axisnames] = ("x", "y", "z")
axis = (names = (axisnames = ("x", "y", "z"),),)
Symbol | Description |
---|
frame | See the detailed descriptions for frame attributes. |
grid | See the detailed descriptions for grid attributes. |
names | See the detailed descriptions for names attributes. |
ticks | See the detailed descriptions for ticks attributes. |
Symbol | Description |
---|
linecolor | Symbol or Colorant. Specifies the color of the grid lines. Can be a color symbol/string like :red, or a Colorant. |
linestyle | |
linewidth | NTuple{2, Number}. Width of the x and y grids. |
Symbol | Description |
---|
align | NTuple{2,(:pos, :pos)} . Specify the text alignment for the axis ticks, where :pos can be :left , :center , or :right |
font | NTuple{2,String}. Specifies the font and can name any font available on the system. |
gap | Number. Specifies the gap (in pixels) between the axis tick labels and the axes themselves. |
linecolor | NTuple{2,Symbol or Colorant}. Specifies the color of the grid lines. Can be a color symbol/string like :red, or a Colorant. |
linestyle | |
linewidth | NTuple{2,Number}. Width of the axes ticks. |
rotation | NTuple{3,Float32}. Specifies the rotations for each axis's ticks, in radians. |
textcolor | NTuple{2,Symbol or Colorant}. Specifies the color of the axes ticks. Can be a color symbol/string like :red, or a Colorant. |
textsize | NTuple{2,Int}. Font pointsize for tick labels. |
title_gap | Number. Specifies the gap (in pixels) between the axis titles and the axis tick labels. |
Symbol | Description |
---|
arrow_size | Number. Size of the axes arrows. |
axis_arrow | Bool. Toggles the axes arrows. |
axis_position | |
frames | NTuple{2,NTuple{2,Bool}}. |
linecolor | Symbol or Colorant. Specifies the color of the grid lines. Can be a color symbol/string like :red, or a Colorant. |
linestyle | |
linewidth | Number. Widths of the axes frame lines. |
Symbol | Description |
---|
align | (:pos, :pos) . Specify the text alignment, where :pos can be :left , :center , or :right . |
axisnames | NTuple{2,String}. Specifies the text labels for the axes. |
font | NTuple{2,String}. Specifies the font and can name any font available on the system. |
rotation | NTuple{3,Float32}. Specifies the rotations for each axis's label, in radians. |
textcolor | NTuple{2,Symbol or Colorant}. Specifies the color of the axes labels. Can be a color symbol/string like :red, or a Colorant. |
textsize | Integer. Font pointsize for text. |
Symbol | Description |
---|
frame | See the detailed descriptions for frame attributes. |
names | See the detailed descriptions for names attributes. |
scale | NTuple{3,Float}. Specifies the scaling for the axes. |
showaxis | NTuple{3,Bool}. Specifies whether to show the axes. |
showgrid | NTuple{3,Bool}. Specifies whether to show the axis grids. |
showticks | NTuple{3,Bool}. Specifies whether to show the axis ticks. |
ticks | See the detailed descriptions for ticks attributes. |
Symbol | Description |
---|
align | NTuple{3,(:pos, :pos)} . Specify the text alignment for the axis ticks, where :pos can be :left , :center , or :right . |
font | NTuple{3,String}. Specifies the font for the axis ticks, and can choose any font available on the system. |
gap | Number. Specifies the gap (in pixels) between the axis ticks and the axes themselves. |
rotation | NTuple{3,Quaternion{Float32}}. Specifies the rotations for each axis's ticks, in radians. |
textcolor | NTuple{3,Symbol or Colorant}. Specifies the color of the axes ticks. Can be a color symbol/string like :red, or a Colorant. |
textsize | Integer. Font pointsize for text. |
Symbol | Description |
---|
axiscolor | Symbol or Colorant. Specifies the color of the axes. Can be a color symbol/string like :red, or a Colorant. |
linecolor | Symbol or Colorant. Specifies the color of the grid lines. Can be a color symbol/string like :red, or a Colorant. |
linewidth | Number. Width of the axes grid lines. |
Symbol | Description |
---|
align | NTuple{3,(:pos, :pos)} . Specify the text alignment for the axis labels, where :pos can be :left , :center , or :right . |
axisnames | NTuple{3,String}. Specifies the axis labels. |
font | NTuple{3,String}. Specifies the font for the axis labels, and can choose any font available on the system. |
gap | Number. Specifies the gap (in pixels) between the axis labels and the axes themselves. |
rotation | NTuple{3,Quaternion{Float32}}. Specifies the rotations for each axis's label, in radians. |
textcolor | NTuple{3,Symbol or Colorant}. Specifies the color of the axes labels. Can be a color symbol/string like :red, or a Colorant. |
textsize | NTuple{3,Int}. Font pointsize for axes labels. |