필터 지우기
필터 지우기

Is it possible to put xlabel text in two rows but with different font size?

조회 수: 24 (최근 30일)
Is it possible to put xlabel text in two rows but with different font size?

채택된 답변

Jan
Jan 2015년 10월 28일
The documentation of xlabel explains with an example, how a multi-line output works. Did you read it? Then the only problem is the font size, which is explained there also:
plot((1:10).^2)
xlabel({'\fontsize{15}Population','\fontsize{20}(in thousands)'})

추가 답변 (1개)

Stalin Samuel
Stalin Samuel 2015년 10월 28일
  댓글 수: 1
Praveen Choudhary
Praveen Choudhary 2019년 10월 4일
newline = char(10);
ylabel(['xyz and',newline,'xyz '],'FontName','Times New Roman','FontSize',12)

댓글을 달려면 로그인하십시오.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by