
We can clearly visualize that the circles in the graph are of different sizes. Let’s take the same example as in previous explanation, to keep things simple for better understanding

This function will help us to make a scatter plot graph with circles at the specified locations of ‘a’ and ‘b’ vector mentioned in the function.Here is the description of scatter plots in MATLAB mention below 1. Now let us understand all these one by one: Description of Scatter Plots in MATLAB MATLAB provides its user with a basket of functions, in this article we will understand a powerful function called ‘Scatter Plot function’ Data analytics (Analysis and Visualization of data).Here we discuss an introduction to Matlab Plot Colors, along with color code table and respective examples.Hadoop, Data Science, Statistics & others There could be instances when we have to plot multiple functions in a single plot, in such cases, colors become very handy to differentiate between different functions. MATLAB can be used to plot our data for visualizing and intuitively understanding it. Observe in the output that we have obtained a scatter plot of red color, as passed by us in the input argument.

Observe in the code that we have passed pre-defined color code for red as an argument (Please refer to the table at the end of the article for pre-defined color codes)

Observe in the code that we have passed pre-defined color code for green as an argument (Please refer to the table at the end of the article for pre-defined color codes)įor this example, we will scatter plot of red color Let us first define an array to create a Bar plot:

How to Set the Color of Bar Plots?įor this example, we will create a bar plot with bars of green color. Observe in the code that we have passed pre-defined color codes as arguments (Please refer to the table at the end of the article for pre-defined color codes) How our input and output will look like in MATLAB console?Įxplanation: As we can see in our output, we have got our functions in the colors as passed by us in the input. Note: For this example, we will be creating our functions in following colors: 1 st function in Green, 2 nd function in Blue and 3 rd function in Yellow] example: plot(X, a, ‘g’, X, b, ‘b’, X, c, ‘y’)
