![plot matlab plot matlab](https://www.mathworks.com/help/examples/graphics/win64/AddTitleAxisLabelsAndLegendExample_06.png)
MATLAB ® creates plots using a default set of colors. The basic use of the built-in function plot is: plot(x, y) where x = array of x-values y = array of y-values 3. hold on This is used to add plots to an existing graph. plot (x2,y,2) Then plot your other lines Default Colors in 3D Graphs. It is useful for customizing aspects of a few plots. I got a label vector to identify which points belong to which class. %How to change the colors in the plot? %I have four curves, and they are black and blue, %I'm trying to change the color to make it understandable. here above you can see i have a 2-D Scatter plot.
#PLOT MATLAB CODE#
Likewise, for plotting the graph on MATLAB, we have different colors code or functions. Color = 'g' It is less simple when you have other things on the axes too and that code comes from me looking at the result on command line and seeing that the middle line is the 2nd element of the boxplot.
![plot matlab plot matlab](https://www.mathworks.com/help/examples/graphics/win64/AddTextToMultipleDataPointsExample_02.png)
Widely, eight colors are used for MATLAB graph. Specify the bar color by setting the FaceColor property to an RGB color value.
![plot matlab plot matlab](https://www.mathworks.com/help/examples/matlab/win64/SpecifyDurationTickFormatsExample_01.png)