필터 지우기
필터 지우기

Why does xlabel and ylabel not show with axes when I set the xlabel and ylabel using plottools?

조회 수: 3 (최근 30일)
Hi
I cant't attach xlabel and ylabel to the figure using plottools when I set the xlabel, ylabel and zlabel.
The zlabel is only show.
What is the reason for this behavior?

채택된 답변

Sally Al Khamees
Sally Al Khamees 2017년 7월 14일
편집: Sally Al Khamees 2017년 7월 14일
Hi Takayuki Honda,
I am able to show the labels by changing their positions to fit them in the figure. I suggest changing the labels units to normalized in the future if you face the same issue. As per the documentation "Normalized with respect to the axes. The lower left corner of the axes maps to (0,0) and the upper right corner maps to (1,1)."
Here is how you can view the labels
>>figHandle = gca;
>>figHandle.XLabel.Units = 'normalized'
>>figHandle.XLabel.Position = [0.8 0 0]

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 グラフィックス オブジェクトのプロパティ에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!