MATLAB: How to change the color of plotting lines MATLAB 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) Best Answer The line of code that apparently does the plotting is cut off in your image. Either specify the color during plottingplot(x,y,'color', 'b');or set the color later using the output handlesh = plot(x,y);set(h, 'Color', 'b') Related SolutionsMATLAB: Color of line plot with marker problem The color of the line is controlled by the 'color' parameter. x = linspace(0,10,50);y = sin(x);plot(x,y,'-s','MarkerSize',10,... 'MarkerEdgeColor','red',... 'MarkerFaceColor',[1 .6 .6], 'color' 'r') % 'color' added MATLAB: Change Color Yes. Open the preferences -> Colors and choose a new color. Related QuestionLegend has different color lines from plot linesIs it possible to change color of figureSetting colors for plot function
Best Answer