Line Width and Style Will Not Change
9 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Voss
on 11 Mar 2024
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)
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!