Line Width and Style Will Not Change

9 visualizaciones (últimos 30 días)
Bowen
Bowen el 11 de Mzo. de 2024
Comentada: Bowen el 11 de Mzo. de 2024
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.

Respuesta aceptada

Voss
Voss el 11 de Mzo. de 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)

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by