Skip to content

xticklabels

plot · scripts/plot/appearance/xticklabels.m

: lbl = xticklabels ()
: xticklabels (labels)
: xticklabels ("auto")
: xticklabels ("manual")
: m = xticklabels ("mode")
: xticklabels (ax, …)

Query or set the tick labels of the x axis.

The labels are returned as a column cell array of character vectors. A cell array of character vectors sets them and switches the label mode to "manual"; if fewer labels than ticks are given the list is repeated. "auto" derives the labels from the ticks again.