Changing font size in scope

32 vues (au cours des 30 derniers jours)
Mohammed Shafiq
Mohammed Shafiq le 13 Avr 2023
Commenté : Adam Danz le 13 Avr 2023
I want to change the font size in the scope window i.e) to increase the size of the numbers in the axes

Réponses (1)

Jethro Kimande
Jethro Kimande le 13 Avr 2023
To increase the font size of the numbers on the axes in MATLAB's scope window, you can use the set(gca,'fontsize',fontSize) command, where fontSize is the desired font size in points.
% Create a sine wave and display it on a scope
t = linspace(0, 10, 1000);
y = sin(2*pi*2*t);
plot(t, y);
title('Sine Wave');
xlabel('Time (s)');
ylabel('Amplitude');
grid on;
% Increase font size of the numbers on the axes
fontSize = 20; % Set desired font size
set(gca, 'fontsize', fontSize);
  1 commentaire
Adam Danz
Adam Danz le 13 Avr 2023
See also fontsize starting in R2022a
fontsize(gca,14,'points')

Connectez-vous pour commenter.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by