subplot change size of xtick ytick

조회 수: 2 (최근 30일)
RuiQi
RuiQi 2017년 1월 23일
댓글: RuiQi 2017년 1월 23일
How do i change the size of my xtick ytick in subplot ? This is a part of my code
set(gca, 'XTick', 0.5:0.1:1, 'YTick', 0:0.2:1);
axis(gca,'square');
legend('3DOP', 'MCG-D', 'MCG', 'EB', 'SS', 'BING');
xlabel('Intersection Over Union');
ylabel('Recall');

채택된 답변

KSSV
KSSV 2017년 1월 23일
set(gca, 'XTick', 0.5:0.1:1, 'YTick', 0:0.2:1);
set(gca, 'FontSize', 18)
axis(gca,'square');
legend('3DOP', 'MCG-D', 'MCG', 'EB', 'SS', 'BING');
xlabel('Intersection Over Union','Fontsize',12);
ylabel('Recall','Fontsize',12);
  댓글 수: 1
RuiQi
RuiQi 2017년 1월 23일
Thanks ! I tried xt = get(gca, 'XTick'); set(gca, 'FontSize', 15); but it didnt work. Your method is simpler and it works

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by