How do I set the title, xlabel, ylabel, or zlabel of an axes using the property inspector?
조회 수: 6 (최근 30일)
이전 댓글 표시
I find it a little strange that the Property inspector of GUIDE does not list 'Title', 'XLabel', or 'YLabel' as properties of axes objects.
채택된 답변
MathWorks Support Team
2009년 6월 27일
You are not able to set the title, xlabel, or ylabel in the property inspector of GUIDE because they are handles to text objects and not just strings.
As a workaround, you can set these properties in the OpeningFcn of the figure. The following is an example code for an axes in GUIDE. It will set the xlabel of the axes.
str='My X label'
set(get(handles.axes1, 'xlabel'), 'string', str)
% Use tag name of the axes which needs to be changed.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Title에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!