position of axis label
Show older comments
When changing the axis limits, the location of the axis label string remains at the center of the axis. But if I moved the label position manually, the label string location is binded to a value. When changing the axis limits, the label string moves away from the axis center.
I checked the properties of the label:
>> ax.XLabel.get
BackgroundColor: 'none'
BeingDeleted: 'off'
BusyAction: 'queue'
ButtonDownFcn: ''
Children: [0×0 GraphicsPlaceholder]
Clipping: 'off'
Color: [1 1 0.8000]
CreateFcn: ''
DeleteFcn: ''
EdgeColor: 'none'
Editing: 'off'
Extent: [216.0002 -79.8522 0 0]
FontAngle: 'normal'
FontName: 'Helvetica'
FontSize: 8.2500
FontSmoothing: 'on'
FontUnits: 'points'
FontWeight: 'bold'
HandleVisibility: 'off'
HitTest: 'on'
HorizontalAlignment: 'center'
Interpreter: 'tex'
Interruptible: 'on'
LineStyle: '-'
LineWidth: 0.5000
Margin: 3
Parent: [1×1 Axes]
PickableParts: 'visible'
Position: [216.0002 -79.8522 1]
Rotation: 0
Selected: 'off'
SelectionHighlight: 'on'
String: ''
Tag: ''
Type: 'text'
UIContextMenu: [0×0 GraphicsPlaceholder]
Units: 'data'
UserData: []
VerticalAlignment: 'top'
Visible: 'on'
There is no property to set to make the positioning automatic.
How can I recover the automatic positioning?
Accepted Answer
More Answers (0)
Categories
Find more on Labels and Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!