Text - Tiled chart layout text appearance and behavior - MATLAB (original) (raw)
Text Properties
Tiled chart layout text appearance and behavior
Text
properties control the appearance and behavior of the Text
objects used for shared titles and axis labels in tiled chart layouts. By changing property values, you can modify certain aspects of the text.
t = tiledlayout(2,2); txt = title(t,'My Title'); txt.FontSize = 16;
Horizontal alignment of the text, specified as 'center'
,'left'
, or 'right'
.
Vertical alignment of the text, specified as 'middle'
,'top'
, 'bottom'
, 'baseline'
, or 'cap'
. The default value is 'bottom'
for shared titles and _y_-axis labels. For shared _x_-axis labels, the default value is 'top'
.
Text orientation, specified as a scalar value in degrees. The default rotation of0
degrees makes the text horizontal. For vertical text, set this property to 90
or -90
. Positive values rotate the text counterclockwise. Negative values rotate the text clockwise.
Font
Font size, specified as a scalar value greater than zero in point units. One point equals 1/72
inch. The default font size for a shared title is13
. For a shared x-axis or y-axis label, the default font size is12
.
Interactivity
Parent/Child
Parent, specified as a TiledChartLayout
object.
The object has no children. You cannot set this property.
Version History
Introduced in R2019b