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.
0 件のコメント
採用された回答
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 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
