필터 지우기
필터 지우기

How to change default position of title as Top to Bottom.

조회 수: 113 (최근 30일)
Tabish Raza
Tabish Raza 2013년 3월 31일
How to change default position of title as Top to Bottom.

채택된 답변

the cyclist
the cyclist 2013년 3월 31일
There are several ways to accomplish this, but they all boil down to defining a position for some text.
Probably the simplest way is that if you don't have a label for the x-axis, is to use
xlabel('This title is really an xlabel')
The title() function automatically places the text at the top, but you can adjust its position to place the text anywhere:
figure
plot(1:10)
title('Test')
set(get(gca,'title'),'Position',[5.5 0.4 1.00011])
Another way is to just place your "bottom title" with the text() command:
figure
plot(1:10)
title('Top title');
text(5, 0.4, 'Bottom title')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by