Hi, I want to do: plot(x1,y1,x2,y2,'LineWidth',8) but the linewidth propery ends up applying to both lines. Do I have to use two plot functions with a hold on command to have line1 a different width than line2? Thanks.
Neeta Dsouza answered .
2025-11-20
p = plot(x1,y1,x2,y2) p(1).LineWidth = 5; p(2).LineWidth = 10;
plot(x1,y1,'LineWidth',5) hold on plot(x2,y2,'LineWidth',10) hold off