Matlab ed color plot6/20/2023 % This demo shows how you can change the default color order of plots.Ĭlose all % Close all figures (except those of imtool.) % plots are plotted according to the 'ColorOrder' property of the axes. % Unless you specify the 'Color' property when you plot, For example, plot(x,y,'*','color',rgb('blood red'))įurther demonstration on how to change the default color order that you get when you plot lines without specifying the color:Įver wonder how it plots blue first, then dark green, then red, then cyan, etc.? Ever want to change the default order so that it plots curves with the color order you want instead of the default color order, and without having to specify the color in every single call to plot()? If so, run the attached demo. If you want lots of color names, you could use the rgb function to return the RGB values of just about any color. Plot(x,y,'*','color',) % plots the RGB value. ![]() You can use plot(x,y,'*','color','blue') % plots in blue.
0 Comments
Leave a Reply. |