15.3.3.3 Axes Properties
Properties of axes objects (see axes):
-
activepositionproperty: {"outerposition"} |"position" -
Specify which of
"position"or"outerposition"properties takes precedence when axes annotations extent changes. See position property, and outerposition property. -
alim: def.[0 1] -
Transparency is not yet implemented for axes objects.
alimis unused. -
alimmode: {"auto"} |"manual" -
ambientlightcolor: def.[1 1 1] -
ambientlightcoloris unused. -
beingdeleted: {"off"} |"on" -
box: {"off"} |"on" -
Control whether the axes has a surrounding box.
-
boxstyle: {"back"} |"full" -
For 3-D axes, control whether the
"full"box is drawn or only the 3"back"axes -
busyaction:"cancel"| {"queue"} -
Define how Octave handles the execution of this object’s callback properties when it is unable to interrupt another object’s executing callback. This is only relevant when the currently executing callback object has its
interruptibleproperty set to"off". Thebusyactionproperty of the interrupting callback object indicates whether the interrupting callback is queued ("queue"(default)) or discarded ("cancel"). See Callbacks section. -
buttondownfcn: string | function handle, def.[](0x0) -
For information on how to write graphics listener functions see Callbacks section.
-
cameraposition: three-element vector, def.[0.50000 0.50000 9.16025] -
camerapositionmode: {"auto"} |"manual" -
cameratarget: three-element vector, def.[0.50000 0.50000 0.50000] -
cameratargetmode: {"auto"} |"manual" -
cameraupvector: three-element vector, def.[-0 1 0] -
cameraupvectormode: {"auto"} |"manual" -
cameraviewangle: scalar, def.6.6086 -
cameraviewanglemode: {"auto"} |"manual" -
children(read-only): vector of graphics handles, def.[](0x1) -
Graphics handles of the axes’s children.
-
clim: two-element vector, def.[0 1] -
Define the limits for the color axis of image children. Setting
climalso forces theclimmodeproperty to be set to"manual". See pcolor function. -
climmode: {"auto"} |"manual" -
clipping:"off"| {"on"} -
clippingis unused. -
clippingstyle: {"3dbox"} |"rectangle" -
clippingstyleis unused. -
color: colorspec, def.[1 1 1] -
Color of the axes background. See colorspec.
-
colormap: def. 64-by-3 double -
colororder: N-by-3 RGB matrix, def. 7-by-3 double -
RGB values used by plot function for automatic line coloring.
-
colororderindex: def.1 -
colororderindexis unused. -
createfcn: string | function handle, def.[](0x0) -
Callback function executed immediately after axes has been created. Function is set by using default property on root object, e.g.,
set (groot, "defaultaxescreatefcn", 'disp ("axes created!")').For information on how to write graphics listener functions see Callbacks section.
-
currentpoint: 2-by-3 matrix, def. 2-by-3 double -
Matrix
[xf, yf, zf; xb, yb, zb]which holds the coordinates (in axes data units) of the point over which the mouse pointer was when the mouse button was pressed. If a mouse callback function is defined,currentpointholds the pointer coordinates at the time the mouse button was pressed. For 3-D plots, the first row of the returned matrix specifies the point nearest to the current camera position and the second row the furthest point. The two points forms a line which is perpendicular to the screen. -
dataaspectratio: three-element vector, def.[1 1 1] -
Specify the relative height and width of the data displayed in the axes. Setting
dataaspectratioto[1, 2]causes the length of one unit as displayed on the x-axis to be the same as the length of 2 units on the y-axis. See daspect function. Settingdataaspectratioalso forces thedataaspectratiomodeproperty to be set to"manual". -
dataaspectratiomode: {"auto"} |"manual" -
deletefcn: string | function handle, def.[](0x0) -
Callback function executed immediately before axes is deleted.
For information on how to write graphics listener functions see Callbacks section.
-
fontangle:"italic"| {"normal"} -
Control whether the font is italic or normal.
-
fontname: string, def."*" -
Name of font used for text rendering. When setting this property, the text rendering engine will search for a matching font in your system. If none is found then text is rendered using a default sans serif font (same as the default
"*"value). -
fontsize: scalar, def.10 -
Size of the font used for text rendering. See fontunits property.
-
fontsmoothing:"off"| {"on"} -
fontsmoothingis unused. -
fontunits:"centimeters"|"inches"|"normalized"|"pixels"| {"points"} -
Units used to interpret the
"fontsize"property. -
fontweight:"bold"| {"normal"} -
Control the variant of the base font used for text rendering.
-
gridalpha: def.0.15000 -
Transparency is not yet implemented for axes objects.
gridalphais unused. -
gridalphamode: {"auto"} |"manual" -
gridalphamodeis unused. -
gridcolor: def.[0.15000 0.15000 0.15000] -
gridcoloris unused. -
gridcolormode: {"auto"} |"manual" -
gridcolormodeis unused. -
gridlinestyle: {"-"} |"--"|"-."|":"|"none" -
handlevisibility:"callback"|"off"| {"on"} -
If
handlevisibilityis"off", the axes’s handle is not visible in its parent’s "children" property. -
hittest:"off"| {"on"} -
Specify whether axes processes mouse events or passes them to ancestors of the object. When enabled, the object may respond to mouse clicks by evaluating the
"buttondownfcn", showing the uicontextmenu, and eventually becoming the root"currentobject". This property is only relevant when the object can accept mouse clicks which is determined by the"pickableparts"property. See pickableparts property. -
interruptible:"off"| {"on"} -
Specify whether this object’s callback functions may be interrupted by other callbacks. By default
interruptibleis"on"and callbacks that make use ofdrawnow,figure,waitfor,getframeorpausefunctions are eventually interrupted. See Callbacks section. -
labelfontsizemultiplier: def.1.1000 -
Ratio between the x/y/zlabel fontsize and the tick label fontsize
-
layer: {"bottom"} |"top" -
Control whether the axes is drawn below child graphics objects (ticks, labels, etc. covered by plotted objects) or above.
-
linestyleorder: def."-" -
linestyleorderis unused. -
linestyleorderindex: def.1 -
linestyleorderindexis unused. -
linewidth: def.0.50000 -
Width of the main axes lines
-
minorgridalpha: def.0.25000 -
Transparency is not yet implemented for axes objects.
minorgridalphais unused. -
minorgridalphamode: {"auto"} |"manual" -
minorgridalphamodeis unused. -
minorgridcolor: def.[0.10000 0.10000 0.10000] -
minorgridcoloris unused. -
minorgridcolormode: {"auto"} |"manual" -
minorgridcolormodeis unused. -
minorgridlinestyle:"-"|"--"|"-."| {":"} |"none" -
mousewheelzoom: scalar in the range (0, 1), def.0.50000 -
Fraction of axes limits to zoom for each wheel movement.
-
nextplot:"add"| {"replace"} |"replacechildren" -
nextplotis used by high level plotting functions to decide what to do with graphics objects already present in the axes. See newplot function. The state ofnextplotis typically controlled using theholdfunction. See hold function. -
outerposition: four-element vector, def.[0 0 1 1] -
Specify the position of the plot including titles, axes, and legend. The four elements of the vector are the coordinates of the lower left corner and width and height of the plot, in units normalized to the width and height of the plot window. For example,
[0.2, 0.3, 0.4, 0.5]sets the lower left corner of the axes at (0.2, 0.3) and the width and height to be 0.4 and 0.5 respectively. See position property. -
parent: graphics handle -
Handle of the parent graphics object.
-
pickableparts:"all"|"none"| {"visible"} -
Specify whether axes will accept mouse clicks. By default,
pickablepartsis"visible"and only visible parts of the axes or its children may react to mouse clicks. Whenpickablepartsis"all"both visible and invisible parts (or children) may react to mouse clicks. Whenpickablepartsis"none"mouse clicks on the object are ignored and transmitted to any objects underneath this one. When an object is configured to accept mouse clicks the"hittest"property will determine how they are processed. See hittest property. -
plotboxaspectratio: def.[1 1 1] -
See pbaspect function. Setting
plotboxaspectratioalso forces theplotboxaspectratiomodeproperty to be set to"manual". -
plotboxaspectratiomode: {"auto"} |"manual" -
position: four-element vector, def.[0.13000 0.11000 0.77500 0.81500] -
Specify the position of the plot excluding titles, axes, and legend. The four elements of the vector are the coordinates of the lower left corner and width and height of the plot, in units normalized to the width and height of the plot window. For example,
[0.2, 0.3, 0.4, 0.5]sets the lower left corner of the axes at (0.2, 0.3) and the width and height to be 0.4 and 0.5 respectively. See outerposition property. -
projection: {"orthographic"} |"perspective" -
projectionis unused. -
selected: {"off"} |"on" -
selectionhighlight:"off"| {"on"} -
sortmethod:"childorder"| {"depth"} -
sortmethodis unused. -
tag: string, def."" -
A user-defined string to label the graphics object.
-
tickdir: {"in"} |"out" -
Control whether axes tick marks project "in" to the plot box or "out". Setting
tickdiralso forces thetickdirmodeproperty to be set to"manual". -
tickdirmode: {"auto"} |"manual" -
ticklabelinterpreter:"latex"|"none"| {"tex"} -
Control the way x/y/zticklabel properties are interpreted. See Use of the interpreter property.
-
ticklength: two-element vector, def.[0.010000 0.025000] -
Two-element vector
[2Dlen 3Dlen]specifying the length of the tickmarks relative to the longest visible axis. -
tightinset(read-only): four-element vector -
Size of the
[left bottom right top]margins around the axes that enclose labels and title annotations. -
title: graphics handle -
Graphics handle of the title text object.
-
titlefontsizemultiplier: positive scalar, def.1.1000 -
Ratio between the title fontsize and the tick label fontsize
-
titlefontweight: {"bold"} |"normal" -
Control variant of base font used for the axes title.
-
type(read-only): string -
Class name of the graphics object.
typeis always"axes" -
uicontextmenu: graphics handle, def.[](0x0) -
Graphics handle of the uicontextmenu object that is currently associated to this axes object.
-
units:"centimeters"|"characters"|"inches"| {"normalized"} |"pixels"|"points" -
Units used to interpret the
"position","outerposition", and"tightinset"properties. -
userdata: Any Octave data, def.[](0x0) -
User-defined data to associate with the graphics object.
-
view: two-element vector, def.[0 90] -
Two-element vector
[azimuth elevation]specifying the viewpoint for three-dimensional plots -
visible:"off"| {"on"} -
If
visibleis"off", the axes is not rendered on screen. -
xaxislocation: {"bottom"} |"origin"|"top" -
Control the x axis location.
-
xcolor: {colorspec} |"none", def.[0.15000 0.15000 0.15000] -
Color of the x-axis. See colorspec. Setting
xcoloralso forces thexcolormodeproperty to be set to"manual". -
xcolormode: {"auto"} |"manual" -
xdir: {"normal"} |"reverse" -
Direction of the x axis:
"normal"is left to right. -
xgrid: {"off"} |"on" -
Control whether major x grid lines are displayed.
-
xlabel: graphics handle -
Graphics handle of the x label text object.
-
xlim: two-element vector, def.[0 1] -
Two-element vector
[xmin xmax]specifying the limits for the x-axis. Settingxlimalso forces thexlimmodeproperty to be set to"manual". See xlim function. -
xlimmode: {"auto"} |"manual" -
xminorgrid: {"off"} |"on" -
Control whether minor x grid lines are displayed.
-
xminortick: {"off"} |"on" -
xscale: {"linear"} |"log" -
xtick: vector -
Position of x tick marks. Setting
xtickalso forces thextickmodeproperty to be set to"manual". -
xticklabel: string | cell array of strings, def. 1-by-6 cell -
Labels of x tick marks. Setting
xticklabelalso forces thexticklabelmodeproperty to be set to"manual". -
xticklabelmode: {"auto"} |"manual" -
xticklabelrotation: def.0 -
xticklabelrotationis unused. -
xtickmode: {"auto"} |"manual" -
yaxislocation: {"left"} |"origin"|"right" -
Control the y-axis location.
-
ycolor: {colorspec} |"none", def.[0.15000 0.15000 0.15000] -
Color of the y-axis. See colorspec.
-
ycolormode: {"auto"} |"manual" -
ydir: {"normal"} |"reverse" -
Direction of the y-axis:
"normal"is bottom to top. -
ygrid: {"off"} |"on" -
Control whether major y grid lines are displayed.
-
ylabel: graphics handle -
Graphics handle of the y label text object.
-
ylim: two-element vector, def.[0 1] -
Two-element vector
[ymin ymax]specifying the limits for the y-axis. Settingylimalso forces theylimmodeproperty to be set to"manual". See ylim function. -
ylimmode: {"auto"} |"manual" -
yminorgrid: {"off"} |"on" -
Control whether minor y grid lines are displayed.
-
yminortick: {"off"} |"on" -
yscale: {"linear"} |"log" -
ytick: vector -
Position of y tick marks. Setting
ytickalso forces theytickmodeproperty to be set to"manual". -
yticklabel: string | cell array of strings, def. 1-by-6 cell -
Labels of y tick marks. Setting
yticklabelalso forces theyticklabelmodeproperty to be set to"manual". -
yticklabelmode: {"auto"} |"manual" -
yticklabelrotation: def.0 -
yticklabelrotationis unused. -
ytickmode: {"auto"} |"manual" -
zcolor: {colorspec} |"none", def.[0.15000 0.15000 0.15000] -
Color of the z-axis. See colorspec.
-
zcolormode: {"auto"} |"manual" -
zdir: {"normal"} |"reverse" -
zgrid: {"off"} |"on" -
Control whether major z grid lines are displayed.
-
zlabel: graphics handle -
Graphics handle of the z label text object.
-
zlim: two-element vector, def.[0 1] -
Two-element vector
[zmin zmaz]specifying the limits for the z-axis. Settingzlimalso forces thezlimmodeproperty to be set to"manual". See zlim function. -
zlimmode: {"auto"} |"manual" -
zminorgrid: {"off"} |"on" -
Control whether minor z grid lines are displayed.
-
zminortick: {"off"} |"on" -
zscale: {"linear"} |"log" -
ztick: vector -
Position of z tick marks. Setting
ztickalso forces theztickmodeproperty to be set to"manual". -
zticklabel: string | cell array of strings, def. 1-by-6 cell -
Labels of z tick marks. Setting
zticklabelalso forces thezticklabelmodeproperty to be set to"manual". -
zticklabelmode: {"auto"} |"manual" -
zticklabelrotation: def.0 -
zticklabelrotationis unused. -
ztickmode: {"auto"} |"manual"
© 1996–2020 John W. Eaton
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.
https://octave.org/doc/v5.2.0/Axes-Properties.html