Plotting Colors Mat Lab

Let us plot the simple function y x for the range of values for x from 0 to 100 with an increment of 5.
Plotting colors mat lab. Plot x y r the plot will look like. Matlab plot colors to draw the graph. When you plot multiple data sets together in the same axes matlab automatically assigns different colors and possibly line styles and markers to the plot objects. Matlab plotting line style.
Go back to the reference page. The rgb triplet is a three element row vector whose elements specify the intensities of the red green and blue components of the color. Likewise for plotting the graph on matlab we have different colors code or functions. If you specify auto and the axes plot box is invisible the marker fill color is the color of the figure.
If you are drawing any picture on paper you have different color pencils to use. Create a script file and type the following code x 0 5 100. Widely eight colors are used for matlab graph. Plot x y when you run the file matlab displays the following plot let us take one more example to plot the function y x 2.
You must surely have grasped how to add the color code to get your graph to the wanted color and notice at the beginning of this post the different color and code you can make use of while using this technique. Here s how one can use those colors in matlab. A few ready to use codes for colors in matlab and tips to make your own colors in matlab are coded with three numbers. So you can use 1 255 255 0 0 to get the color of red to use as a color in matlab.
The intensities must be in the range 0 1. The red green and blue rgb values. The official color for loyola green is given as rgb 0 104 87 and loyola gray is given as rgb 200 200 200 found on loyola s logos university signature page. Control colors line styles and markers in plots.
Marker fill color specified as auto an rgb triplet a hexadecimal color code a color name or a short name. You can customize the colors line styles and markers when you call plotting functions. In this example we will draw.