How can I change the font size of tick labels on the axes of a graph?
조회 수: 220 (최근 30일)
이전 댓글 표시
I have tried all of the suggestions in fx, Help and answers to other people's questions, but I cannot make any of them work in Matlab 2020a.
댓글 수: 0
답변 (2개)
Cris LaPierre
2020년 5월 29일
편집: Cris LaPierre
2020년 5월 29일
plot(1:5)
ax=gca;
ax.FontSize = 20
ax.XAxis.FontSize = 20
댓글 수: 5
Cris LaPierre
2020년 6월 2일
You likely replied to an email notification from MATLAB Central. Replies are not actually directed to anyone.
I've poked around in your code. I didn't attempt to explore every plot, but if I were you, I would probably set the properties this way.
title(strcat('Basilar Membrane Velocity Transfer Function, Excitation @',Stringt,sprintf('\n Frequency = %0.0f Hz,',f(fn)),Comp))
ylabel(strcat('Basilar Membrane velocity amplitude (dB)',Stringy))
xlabel('Distance from Stapes (mm)')%lgd.Title.String = 'Frequency (kHz)';
ax=gca;
ax.XAxis.FontSize = 12;
ax.YAxis.FontSize = 12;
ax.XLabel.FontSize = 24;
ax.YLabel.FontSize = 14;
ax.Title.FontSize = 18;
Was there a particular plot that was not working?
Giuseppe Degan Di Dieco
2021년 4월 27일
Dear Cris,
your solution worked for me too.
Thanks for your brilliant help.
Best!
참고 항목
카테고리
Help Center 및 File Exchange에서 Install Products에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!