Line Width and Style Will Not Change

9 次查看(过去 30 天)
When plotting my graphs, the line width and style will not change from the default settings no matter what input arguments that I give the plot command.
plot(t,p)
title('Magnitude of the Hydrostatic Pressure Over Time','FontSize',16)
gives the following:
while trying to update it with:
plot(t,p)
title('Magnitude of the Hydrostatic Pressure Over Time','FontSize',16,'LineWidth',5,'LineStyle',':')
gives the following:
Which as you can see has no discernable difference. I even went a little crazy and increased the LineWidth to 100 with no change.
Thanks in advance for the help/review.

采纳的回答

Voss
Voss 2024-3-11
Set the line width and style in the plot call, not the title call.
t = 1:10;
p = 2:11;
plot(t,p,'LineWidth',5,'LineStyle',':')
title('Magnitude of the Hydrostatic Pressure Over Time','FontSize',16)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by