Skip to content

xtickformat

plot · scripts/plot/appearance/xtickformat.m

: fmt = xtickformat ()
: xtickformat (fmt)
: xtickformat (ax, fmt)

Query or set the numeric format of the tick labels of the x axis.

fmt is a sprintf style format with one numeric conversion, for example "%.2f" or "$%.1f"; the currency names "usd", "eur", "gbp" and "jpy" are also understood. An empty string or "auto" restores the default. The tick positions and the limits are not changed.