Linestyle does not change
Afficher commentaires plus anciens
Hi, am having a trboule with plot and linestyle commands.
Am using the following code
plot(t,r2,'--b');hold on
plot(t,r3,'-.r'); hold on
plot(t,r1,':g'); hold off
But still am having the same linestyle on all curves (--)?

I have tried several ways to go around this problem, but with no luck at all
Thanks
5 commentaires
Walter Roberson
le 1 Août 2016
Which release are you using, and which operating system? Could you show us
get(gcf, 'renderer')
opengl info
Image Analyst
le 2 Août 2016
It works fine for me, though the green line especially, and all the lines that I have are a lot more faint and thinner than yours.
ALZ
le 2 Août 2016
Image Analyst
le 2 Août 2016
Are you sure your r are all 1-D vectors and not 2-D matrices?
ALZ
le 2 Août 2016
Réponses (3)
Azzi Abdelmalek
le 1 Août 2016
Increase the line width
t=0:0.1:10
r1=sin(t)
r2=2*cos(t)
r3=t
plot(t,r2,'--b');hold on
plot(t,r3,'-.r','linewidth',3); hold on
plot(t,r1,':g','linewidth',3);
ALZ
le 2 Août 2016
0 votes
Catégories
En savoir plus sur Graphics Performance dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!