How can I change the font size of tick labels on the axes of a graph?
306 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (2)
Cris LaPierre
am 29 Mai 2020
Bearbeitet: Cris LaPierre
am 29 Mai 2020
plot(1:5)
ax=gca;
ax.FontSize = 20
ax.XAxis.FontSize = 20
5 Kommentare
Cris LaPierre
am 2 Jun. 2020
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
am 27 Apr. 2021
Dear Cris,
your solution worked for me too.
Thanks for your brilliant help.
Best!
Siehe auch
Kategorien
Mehr zu Install Products finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!