How can I change the space between multiline title ?

조회 수: 5 (최근 30일)
Will Fonseca
Will Fonseca 2013년 1월 22일
댓글: Mr M. 2018년 9월 24일
Hi,
I have the following title:
h = title({'Frequency vs. Beampattern - GA Array ' ; 'Plane Wave on Cylinder (Free-Field) - \phi_{in}=90^{\circ}'},...
'FontWeight','bold',...
'FontSize',11,...
'FontName','Palatino Linotype');
However, the lines are too close, hence I need some extra line spacing.
Does anyone know how to do it ?
Thanks,
Will

채택된 답변

Will Fonseca
Will Fonseca 2013년 1월 22일
편집: Will Fonseca 2013년 1월 22일
Solved !
As suggested by Doug in
The complete solution is
tall_str = sprintf(['\\fontsize{14}' blanks(1) '\\fontsize{11}']);
h = title({'Frequency vs. Beampattern - GA Array ' ;...
[tall_str 'Plane Wave on Cylinder (Diffraction+Free-Field) - \phi_{in}=90^{\circ}']},...
'FontWeight','bold',...
'FontSize',11,...
'FontName','Palatino Linotype');
The "tall_str" is a dummy string with a bigger size just to allocate more space.
Cheers,
Will
  댓글 수: 1
Mr M.
Mr M. 2018년 9월 24일
But, what if I want to decrease the line space??

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by