Matlab_GUI study notes (6) - Text of the properties of common objects
1. Text
Text
A child object for the axes Axes
. A child object that can be viewed through allchild
a function .Axes
>> ha = axes;
>> ht = text(1,1,'示例');
>> get(ht)
BackgroundColor: 'none'
BeingDeleted: 'off'
BusyAction: 'queue'
ButtonDownFcn: ''
Children: [0×0 GraphicsPlaceholder]
Clipping: 'off'
Color: [0 0 0]
CreateFcn: ''
DeleteFcn: ''
EdgeColor: 'none'
Editing: 'off'
Extent: [1 0.9755 0.0626 0.0491]
FontAngle: 'normal'
FontName: 'Helvetica'
FontSize: 10
FontSmoothing: 'on'
FontUnits: 'points'
FontWeight: 'normal'
HandleVisibility: 'on'
HitTest: 'on'
HorizontalAlignment: 'left'
Interpreter: 'tex'
Interruptible: 'on'
LineStyle: '-'
LineWidth: 0.5000
Margin: 3
Parent: [1×1 Axes]
PickableParts: 'visible'
Position: [1 1 0]
Rotation: 0
Selected: 'off'
SelectionHighlight: 'on'
String: '示例'
Tag: ''
Type: 'text'
UIContextMenu: [0×0 GraphicsPlaceholder]
Units: 'data'
UserData: []
VerticalAlignment: 'middle'
Visible: 'on'
- The Interpreter
interpretertex
islatex
often used when editing some formulas.ha = axes; ht = text(1,1,'示例'); text('String', '\int_0^x dF(x)','Position', [0.5,0.5]); text('interpreter', 'latex', 'String', '$$ \int_0^x dF(x) $$', 'Position', [0.5,0.7]);