How to change the color of plotting lines
993 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ZC Song
el 18 de Jun. de 2019
Hi,
I have multiple lines to plot but by defualt they are different color, how to change the color to uniform color?
I tried to do this but failed (see below)
0 comentarios
Respuesta aceptada
Adam Danz
el 18 de Jun. de 2019
The line of code that apparently does the plotting is cut off in your image.
Either specify the color during plotting
plot(x,y,'color', 'b');
or set the color later using the output handles
h = plot(x,y);
set(h, 'Color', 'b')
2 comentarios
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!