Set title and axis font type, scale and size

조회 수: 6 (최근 30일)
as hz
as hz 2012년 9월 26일
편집: Adam Danz 2022년 3월 18일
Hi,
How can I change the title and axis font type, scale and size of this script:
intensity_area_prime= diff(intensity_area);
plot(intensity_area_prime, 'm - *'), grid on;
title('Granulometry (Size Distribution) of Snowflakes');
set(gca, 'xtick', [0 2 4 6 8 10 12 14 16 18 20 22]);
xlabel('radius of snowflakes (pixels)');
ylabel('Sum of pixel values in snowflakes as a function of radius');
Thanks
  댓글 수: 2
Daniel Shub
Daniel Shub 2012년 9월 26일
What have you tried so far? Have you looked at the MATLAB documentation?
Adam Danz
Adam Danz 2020년 1월 30일
편집: Adam Danz 2022년 3월 18일
If you'd like to scale the font size of a figure/axes so that each text component maintains its relative size, see supersizeme() from the file exchange.
Update: Starting in MATLAB R2022a, use the fontsize function to scale font sizes and set font units in a figure. Release R2022a also includes the new fontname function to set font names within a figure. For a review, see this Community Highlight.

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

답변 (2개)

Mech Princess
Mech Princess 2013년 2월 8일
편집: Mech Princess 2013년 2월 8일
add ,'FontSize',22) to the end
example
xlabel('radius of snowflakes (pixels)','FontSize',22);

hamid barazesh
hamid barazesh 2019년 2월 25일
How to disable visualiziation window in simmech ??

카테고리

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