how to change the color of a 2-D line on plot graph

5 vues (au cours des 30 derniers jours)
Hannah Gordon
Hannah Gordon le 1 Nov 2018
Commenté : madhan ravi le 1 Nov 2018
x=(aug_fires(:,1)) y=(aug_fires(:,2)) r=(aug_fires(:,3)) a=plot(aug_fires(:,1),aug_fires(:,2)) yyaxis right plot(x,r) % i have 2 lines on one graph one showing number of fires the other showing acres burned i want to change the colors of both the lines

Réponses (1)

madhan ravi
madhan ravi le 1 Nov 2018
Modifié(e) : madhan ravi le 1 Nov 2018
plot(x,r,'r') %plots red line
plot(x,r,'b') %plots blue line

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by