Line Width and Style Will Not Change

9 ビュー (過去 30 日間)
Bowen
Bowen 2024 年 3 月 11 日
コメント済み: Bowen 2024 年 3 月 11 日
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)
  1 件のコメント
Bowen
Bowen 2024 年 3 月 11 日
oh yeah, I'm just dumb haha

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-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