Change color graphic bar
问题 I have two datasets of data printed on the same graph. What I want is to differentiate the information by putting a legend that indicates the color of each of the two pieces of information in the graph. I have not been able to put a different color to each information and also a legend that shows what data each color belongs to. My code: . . . %grafica de barras 1 bar(app.CasosUIAxes,data1.dateRep,data1.cases,'r') %grafica de barras 2 bar(app.CasosUIAxes,data2.dateRep,data2.cases)