adjusting label and title thickness of the plot function

조회 수: 14 (최근 30일)
sermet
sermet 2014년 7월 15일
답변: Azzi Abdelmalek 2014년 7월 15일
x=[1;2;3;4;5;6;7;8;9;10];
plot(x);
xlabel('x coordinates')
ylabel('y coordinates')
title('title')
%I need to increase the size of x-y labels and title and make a little more bold.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 15일
x=[1;2;3;4;5;6;7;8;9;10];
plot(x);
xlabel('x coordinates','fontsize',16,'fontweight','bold')

추가 답변 (1개)

Yoav Livneh
Yoav Livneh 2014년 7월 15일
Just use the 'fontsize' attribute of the axes:
set(gca,'fontsize',fontsize); % default fontsize is 10

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by