How do I get the title and label objects for an axes in MATLAB R2014b?
7 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2014-10-7
回答: MathWorks Support Team
2014-10-7
How do I get the title and label objects for an axes in MATLAB R2014b?
采纳的回答
MathWorks Support Team
2014-10-7
Starting in MATLAB R2014b, the text objects used for graph titles and axis labels are no longer children of the axes. Instead, use the Title, XLabel, YLabel, and ZLabel properties of the axes to get the associated text objects.
For example, get the text objects used for the title and x-axis label.
ax = gca;
t = ax.Title;
xl = ax.XLabel;
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Labels and Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!