fontsize
Change font size for objects in a figure
Syntax
Description
fontsize(
sets the font size and font units for all of the text within graphics object
obj
,size
,units
)obj
. If obj
contains other graphics objects, such as
a figure that contains UI components or an axes object that has a legend,
fontsize
also sets the font size and font units for those objects
within obj
. Font units can be "points"
,
"pixels"
, "inches"
, or
"centimeters"
.
fontsize(
decreases the font size by a factor of 0.9.obj
,"decrease"
)
Examples
Input Arguments
Version History
Introduced in R2022a