How to change size of plot points

10 ビュー (過去 30 日間)
Alexander
Alexander 2024 年 2 月 2 日
回答済み: Matt J 2024 年 2 月 2 日
Trying to make the points smaller so it is easier to read. I know about LineWidth, but is there a way to just make the circles smaller?
savtotal=1000; % initial amount
hold on
xlabel("Time (Months)") % graph labels
ylabel("Amount Saved ($)")
title("College Savings")
for i=1:216 % 216 months (18 years)
savtotal=(savtotal+100)*1.005; % $100+interest each month (0.05%)
plot(i,savtotal,"o",linewidth=0.1) % plot money each month
end
hold off

採用された回答

Matt J
Matt J 2024 年 2 月 2 日
savtotal=1000; % initial amount
hold on
xlabel("Time (Months)") % graph labels
ylabel("Amount Saved ($)")
title("College Savings")
for i=1:216 % 216 months (18 years)
savtotal=(savtotal+100)*1.005; % $100+interest each month (0.05%)
plot(i,savtotal,".",linewidth=0.1) % plot money each month
end
hold off

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePolar Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by