Skip to content

tightPosition

plot · scripts/plot/util/tightPosition.m

: pos = tightPosition (ax)
: pos = tightPosition (ax, "IncludeLabels", tf)

Return the bounding rectangle [left bottom width height] of the axes ax together with its tick labels, in the axes’ own units.

With "IncludeLabels" true the rectangle also covers the axis labels and title. The default is false.

There is no text renderer behind the classic toolkits, so the rectangle is the axes position, grown by TightInset when labels are asked for.