Axes
MATLAB 中坐标轴 axes 是一类特殊的对象, 包括 Axes object, PolarAxes object, GeographicAxes object 或 standalone visualization. 通过 ax = gca 可返回当前坐标轴.
Specify Axis Limits
用函数 xlim, ylim 和 zlim 指定坐标范围. 有如下语法
xlim([min max])ylim([-inf max]),ylim([min inf])- The maximum or minimum limit will be automatically calculated
zlim auto- Revert back to the default limits
Specify Axis Tick Properties
xticks(TickVector)指定显示的坐标值xticklabels(LabelCharCellArray)指定坐标值标签- 若不指定, 则默认为原本数值
- 需和显示坐标值一一对应
- 接受 cell array of char
- 自动编译
xtickangle(angle)指定坐标值标签旋转角度 (角度制)xtickformat(format)指定坐标值单位
Axes Properties
更详尽完全的调整坐标轴表现的方法就是修改坐标轴对象的 properties, 详见 Axes appearance and behavior - MATLAB