Title is overraped to graph legend. How to detach them?

조회 수: 1 (최근 30일)
NoYeah
NoYeah 2023년 1월 16일
답변: Kartikay Sapra 2023년 1월 16일
As you see, graph unit legend and graph title is overlapped.
Is there any way to increase span between graph titles and grahps?

채택된 답변

Kartikay Sapra
Kartikay Sapra 2023년 1월 16일
A workaround is to explicitly add a new line to your title by using '\n'. This approach will add a blank line between the graph and the title. Refer to the following example.
plot((1:100).^2);
title('My Curve');
%Note the changes in this plot
plot((1:100).^2);
text = sprintf('My Curve\n');
title(text, 'Interpreter', 'latex');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by