縦軸のメモリ間隔を狭めたい

6 views (last 30 days)
翔 池田
翔 池田 on 29 Nov 2021
Answered: Atsushi Ueno on 29 Nov 2021
現在,上図のように,縦軸が1,2となっており,
ylim [ 0.5 2.5 ] yticks([1 2])
としています.
この縦軸のメモリである1 , 2 を保ちながら,
メモリ間隔を狭める方法があればご教示宜しくお願い致します.

Accepted Answer

Atsushi Ueno
Atsushi Ueno on 29 Nov 2021
ylimの範囲を変更すれば、この縦軸のメモリである1 , 2 を保ちながらメモリ間隔を狭める事が出来ます。
figure; plot(0,0); hold on;
for i=1:17
scatter(randi(20),randi(2),50,'b','filled');
end
ylim([-5 10]); % ylim([0.5 2.5]); より変更
yticks([1 2]);

More Answers (0)

Community Treasure Hunt

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

Start Hunting!