Skip to content

ytickformat

plot · scripts/plot/appearance/ytickformat.m

: fmt = ytickformat ()
: ytickformat (fmt)
: ytickformat (ax, fmt)

Query or set the numeric format of the tick labels of the y 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.