Axis
These attributes apply by default to all Axes in a Subplot (for example the subplot[:xaxis]
).
You can also specific the x, y, or z axis for each of these attributes by prefixing the attribute name with x, y, or z (for example xmirror
only sets the mirror attribute for the x axis).
Attribute | Aliases | Default | Type | Description |
---|---|---|---|---|
discrete_values | ||||
draw_arrow | `false` | Bool | Draw arrow at the end of the axis. | |
flip | `false` | Bool | Should we flip (reverse) the axis? | |
foreground_color_axis | axiscolor, fg_axis, fg_color_axis, fg_colour_axis, fgaxis, fgcolor_axis, fgcoloraxis, fgcolour_axis, fgcolouraxis, foreground_axis, foreground_colour_axis, foregroundaxis, foregroundcolouraxis | `match` | Color Type or `:match` (matches `:foreground_color_subplot`) | Color of axis ticks. |
foreground_color_border | bordercolor, fg_border, fg_color_border, fg_colour_border, fgborder, fgcolor_border, fgcolorborder, fgcolour_border, fgcolourborder, foreground_border, foreground_colour_border, foregroundborder, foregroundcolourborder | `match` | Color Type or `:match` (matches `:foreground_color_subplot`) | Color of plot area border (spines). |
foreground_color_grid | fg_color_grid, fg_colour_grid, fg_grid, fgcolor_grid, fgcolorgrid, fgcolour_grid, fgcolourgrid, fggrid, foreground_colour_grid, foreground_grid, foregroundcolourgrid, foregroundgrid, gridcolor | `match` | Color Type or `:match` (matches `:foreground_color_subplot`) | Color of grid lines. |
foreground_color_guide | fg_color_guide, fg_colour_guide, fg_guide, fgcolor_guide, fgcolorguide, fgcolour_guide, fgcolourguide, fgguide, foreground_colour_guide, foreground_guide, foregroundcolourguide, foregroundguide, guidecolor | `match` | Color Type or `:match` (matches `:foreground_color_subplot`) | Color of axis guides (axis labels). |
foreground_color_minor_grid | fg_color_minorgrid, fg_colour_minor_grid, fg_minor_grid, fgcolor_minorgrid, fgcolorminorgrid, fgcolour_minorgrid, fgcolourminorgrid, fgminorgrid, foreground_colour_minor_grid, foreground_minorgrid, foregroundcolourminorgrid, foregroundminorgrid, minorgridcolor | `match` | Color Type or `:match` (matches `:foreground_color_subplot`) | Color of minor grid lines. |
foreground_color_text | fg_color_text, fg_colour_text, fg_text, fgcolor_text, fgcolortext, fgcolour_text, fgcolourtext, fgtext, foreground_colour_text, foreground_text, foregroundcolourtext, foregroundtext, textcolor | `match` | Color Type or `:match` (matches `:foreground_color_subplot`) | Color of tick labels. |
formatter | `auto` | Function, :scientific, :plain or :auto | A method which converts a number to a string for tick labeling. | |
grid | `true` | Bool, Symbol, String or `nothing` | Show the grid lines? `true`, `false`, `:show`, `:hide`, `:yes`, `:no`, `:x`, `:y`, `:z`, `:xy`, ..., `:all`, `:none`, `:off` | |
gridalpha | ga, galpha, gopacity, gridopacity, gα | `0.1` | Number in [0,1] | The alpha/opacity override for the grid lines. |
gridlinewidth | grid_linewidth, grid_lw, grid_width, gridlinewidth, gridlw, gridwidth | `0.5` | Number | Width of the grid lines (in pixels) |
gridstyle | grid_linestyle, grid_ls, grid_style, gridlinestyle, gridls, gridstyle | `solid` | Symbol | Style of the grid lines. Choose from [:auto, :solid, :dash, :dot, :dashdot, :dashdotdot] |
guide | `` | String | Axis guide (label). | |
guide_position | `auto` | Symbol | Position of axis guides: :top, :bottom, :left or :right | |
guidefontcolor | `match` | Color Type | Font color of axes guides | |
guidefontfamily | `match` | String or Symbol | Font family of axes guides. | |
guidefonthalign | `hcenter` | Symbol | Font horizontal alignment of axes guides: :hcenter, :left, :right or :center | |
guidefontrotation | `0.0` | Real | Font rotation of axes guides | |
guidefontsize | labelfontsize | `11` | Integer | Font pointsize of axes guides. |
guidefontvalign | `vcenter` | Symbol | Font vertical alignment of axes guides: :vcenter, :top, :bottom or :center | |
lims | lim, limit, limits, range | `auto` | NTuple{2,Number} or Symbol | Force axis limits. Only finite values are used (you can set only the right limit with `xlims = (-Inf, 2)` for example). `:round` widens the limit to the nearest round number ie. [0.1,3.6]=>[0.0,4.0] `:symmetric` sets the limits to be symmetric around zero. Set widen=true to widen the specified limits (as occurs when lims are not specified). |
link | links | `Any[]` | Symbol | How/whether to link axis limits between subplots. Values: `:none`, `:x` (x axes are linked by columns), `:y` (y axes are linked by rows), `:both` (x and y are linked), `:all` (every subplot is linked together regardless of layout position). |
minorgrid | `false` | Bool | Adds minor grid lines and ticks to the plot. Set minorticks to change number of gridlines | |
minorgridalpha | `0.05` | Number in [0,1] | The alpha/opacity override for the minorgrid lines. | |
minorgridlinewidth | minorgrid_linewidth, minorgrid_lw, minorgrid_width, minorgridlinewidth, minorgridlw, minorgridwidth | `0.5` | Number | Width of the minor grid lines (in pixels) |
minorgridstyle | minorgrid_linestyle, minorgrid_ls, minorgrid_style, minorgridlinestyle, minorgridls, minorgridstyle | `solid` | Symbol | Style of the minor grid lines. Choose from [:auto, :solid, :dash, :dot, :dashdot, :dashdotdot] |
minorticks | `false` | Integer | Intervals to divide the gap between major ticks into | |
mirror | `false` | Bool | Switch the side of the tick labels (right or top). | |
rotation | r, rot | `0` | Number | Degrees rotation of tick labels. |
scale | `identity` | Symbol | Scale of the axis: `:none`, `:ln`, `:log2`, `:log10` | |
showaxis | `true` | Bool, Symbol or String | Show the axis. `true`, `false`, `:show`, `:hide`, `:yes`, `:no`, `:x`, `:y`, `:z`, `:xy`, ..., `:all`, `:off` | |
tick_direction | tick_dir, tick_or, tick_orientation, tickdir, tickdirection, tickor, tickorientation | `in` | Symbol | Direction of the ticks. `:in`, `:out` or `:none` |
tickfontcolor | `match` | Color Type | Font color of tick labels | |
tickfontfamily | `match` | String or Symbol | Font family of tick labels. | |
tickfonthalign | `hcenter` | Symbol | Font horizontal alignment of tick labels: :hcenter, :left, :right or :center | |
tickfontrotation | `0.0` | Real | Font rotation of tick labels | |
tickfontsize | `8` | Integer | Font pointsize of tick labels. | |
tickfontvalign | `vcenter` | Symbol | Font vertical alignment of tick labels: :vcenter, :top, :bottom or :center | |
ticks | tick | |||
widen | `auto` | Bool or :auto | Widen the axis limits by a small factor to avoid cut-off markers and lines at the borders. Defaults to `:auto`, which widens unless limits were manually set. |
(Automatically generated: 2022-06-22T14:36:30.283)