Changing font size in scope

I want to change the font size in the scope window i.e) to increase the size of the numbers in the axes

回答 (1 件)

Jethro Kimande
Jethro Kimande 2023 年 4 月 13 日

0 投票

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 件のコメント

Adam Danz
Adam Danz 2023 年 4 月 13 日
See also fontsize starting in R2022a
fontsize(gca,14,'points')

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

リリース

R2023a

質問済み:

2023 年 4 月 13 日

コメント済み:

2023 年 4 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by