fontsize
Syntax
Description
fontsize(
sets
the font size and font units for all of the text within the current figure. If the figure
contains other graphics objects, such as UI components or an axes object with a legend,
size
,units
)fontsize
also sets the font size and font units for those objects in
the figure. Font units can be "points"
, "pixels"
,
"inches"
, or "centimeters"
.
Before R2023a: All syntaxes require a graphics object as the
first input, such as
fontsize(
.obj
,size,units)
fontsize(
increases the font size
by a factor of 1.1."increase"
)
fontsize(
decreases the font size
by a factor of 0.9."decrease"
)
fontsize(scale=
scales the font size
by a factor of sfactor
)sfactor
. For example, use a scale factor of
1.2
to scale by 120%.
fontsize(
resets the font size and
font units to the default, automatic values."default"
)