Skip to content

xticks

plot · scripts/plot/appearance/xticks.m

: t = xticks ()
: xticks (vals)
: xticks ("auto")
: xticks ("manual")
: m = xticks ("mode")
: xticks (ax, …)

Query or set the tick positions of the x axis.

Without arguments the present tick positions are returned as a row vector. A numeric vector of finite values sets the positions (stored in ascending order) and switches the tick mode to "manual". "auto" and "manual" select the tick mode and "mode" reports it.