legend line color same
Ältere Kommentare anzeigen
How to get different color in legend, getting same dashed green color for I3,I2 , should be as plotted I3 green and I2 to be blue disp(f2);
plot( L_interp, I3, 'g--' ,L_interp, I2, 'b--',L_interp, I4, 'r--',L_interp, I, 'k--');
xlabel('wavelength');
ylabel('I');
legend('I3', 'I2');
Thank you
4 Kommentare
Dyuman Joshi
am 21 Mai 2023
Please share your whole code including any data you have. You can copy and paste it here directly or attach it using the paperclip button.
Sean
am 22 Mai 2023
Sean
am 22 Mai 2023
Dyuman Joshi
am 22 Mai 2023
As I requested above, please share you whole code.
Akzeptierte Antwort
Weitere Antworten (1)
Antoni Garcia-Herreros
am 22 Mai 2023
Hello,
Try:
legend('I3', '','I2');
1 Kommentar
Sean
am 22 Mai 2023
Kategorien
Mehr zu Legend finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

