How to change size of plot points

10 vues (au cours des 30 derniers jours)
Alexander
Alexander le 2 Fév 2024
Réponse apportée : Matt J le 2 Fév 2024
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

Réponse acceptée

Matt J
Matt J le 2 Fév 2024
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

Plus de réponses (0)

Catégories

En savoir plus sur Polar Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by