Matlab Plot Colors

It is not showing the color coded key in the legend although it will show the label text. If x and y are vectors, then a typical vertex is (x(j), y(i), c(i,j)). Note that after 20 folds, the thickness is 5243 inches (437 feet). ), places circular markers (o) at the data points, and colors both line and marker red (r). You can specify colors using a vector. The stored binary matrix can then be plotted by adding the binary indicator to the plot command. Usually RGB colors have values from 0 to 255. You can put in the RGB triplet (as a vector) directly into the plot command. Defines the colors used by the plot and plot3 functions to color each line plotted. how to do plotting with different colors in same Learn more about plotting, color MATLAB. If the color is the only part of the format string, you can additionally use any matplotlib. This will leave the legend line color consistent with the lines on the plot; the symbol won't show. plot Command. creates an hsv colormap with 128 colors. Here is how to handle a conditional plotting in Matlab. If I dbstep through each iteration of the loop, then the color will show up, however, when the loop completes the gradient colors go away and the default uniform matlab colors remain. We are going to produce some figures with simple scripts to show first a small number of points, and we'll show then more points to see how this affect the general image. We'll pick five evenly-spaced colors from the "jet" colormap, which is basically a rainbow--but you can pick your colors however you want. When you use shading faceted or shading flat, the constant color of each cell is the color associated with the corner having the smallest x-y coordinates. Part 2 of a series of screencasts on plotting in MATLAB from the command line or an M-file. I want to change the color in Deep blue. Extras: MATLAB Tips & Tricks. Setting colors for plot function. ("C" is color matrix) colormap(C/255); % in matlab import matplotlib as mpl # in python. If you actually want to know what the colour order is for your plot, make sure the plot is open in MATLAB, then do the following: get(gca,'colororder'). scatter from plt. How to Plot a Function in MATLAB. Clear Use system colors. The PlotBuilder command lets you build and display plots interactively. Matlab = MATrix LABoratory, a numerical computing environment. In this session we want to look closer to how we can plot a conditional plot using Matlab Here is an easy example of a conditional plot plot f. The plot is working fine there is no wrong with it, I am getting correctly plotted values. For a custom color, specify an RGB triplet or a hexadecimal color code. ), places circular markers (o) at the data points, and colors both line and marker red (r). The color level lines can be controlled by adding one more argument in the command. In addition domain borders can be displayed and superimposed to the plot data. ; Any or all of x, y, s, and c may be masked arrays, in which case all masks will be combined and only unmasked points will be plotted. Below shows MATLAB code for how to plot the functions on three separate. Whenever you create a plot in MATLAB, you need to identify the sources of information using more than just the lines. csv with the following stru. If you do not specify a size, MATLAB creates a colormap the same size as the current colormap. Learn more about plot, change color. MATLAB (matrix laboratory) is a multi-paradigm numerical computing environment and proprietary programming language developed by MathWorks. However, I'd like ignore the "value" or "brightness" in both color spaces and analyze rest of the layers. Setting colors for plot function. Using a color bar with your MATLAB plot can help people see data values based on color rather than pure numeric value. I have been tasked with making a plot with a couple variables of available data. I tried to create a plot without using the plot function but I am confused why it is not working. We will discuss −. The plot function in Matlab is used to create a graphical representation of some data. Select MATLAB > Colors. Part 2 of a series of screencasts on plotting in MATLAB from the command line or an M-file. The plot function is used to plot sets of data on a 2-D grid. The formation of a color histogram is rather simple. If you do not specify a color when plotting more than one line, loglog automatically cycles through the colors and line styles in the order specified by the current axes. plotting multiple graphs in different colors with a single command. xlabel Adds text label to x-axis. If you do not specify a line color with plot and plot3, these functions cycle through the ColorOrder property to obtain the color for each line plotted. Specify the components (in any order) as a quoted string after the data arguments. This article explains some of the undocumented aspects. EZPLOT is an easy to use function plotter. The line styles, symbols, and colors are formatted as a clearer table. plotting multiple graphs in different colors Learn more about plot, graph MATLAB Answers. Matlab Plot Colors and Styles Tutorial45 MathLab As we have already stated here , by writing help plot or doc plot in Matlab you will be able to find the information we are about to give you down below. Otherwise all the plots will be of the same default (blue) color and line style. plot Command. For example. or') plots y versus x using a dash-dot line (-. Here's how one can use those colors in MATLAB. Customizing axes part 4 – additional properties – Matlab HG2 axes can be customized in many different ways. Examples of the plot function, line and marker types, custom colors, and log and semi-log axes. Bar plot with bars in different colors. Show an image in a MATLAB 3D surface plot with a separate colormap T he surface / surf plot in MATLAB can visualize data in 3D. How to draw three dimenstional plots in MATLAB? MATLAB 3D plot examples explained with code and syntax for Mesh, Surface Ribbon, Contour and Slice. Backgrounds in MATLAB ®. This article explains some of the undocumented aspects. 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. subplot - display multiple plots in the same window subplot (nrows,ncols,plot_number) Try: x=0:. If the list contains more colors than needed, the remaining colors are. ^2) title(['\fontsize{16}black Here are the RGB triplets and hexadecimal color codes for the default colors MATLAB uses in many types of plots. Just remember, Matlab commands are issued in lower case. It provides many tools for data analysis and visualization. I have a dataset of images representing human skin. plot Command. Vectors are 1 x n or m x 1 matrices. You specify the color of the line like this. Even though the changing color in the waterfall plot looks nice you should always think if it really adds some additional information to the plot. How to Make 3D Plots Using MATLAB. Hello fellows and folks. After cycling through all the colors defined by ColorOrder, plot then cycles through the line styles defined in the axes LineStyleOrder property. In today's post I'll provide some insight that may assist users with similar customizations in other plot types. All you need to do to use it is to state the function you would like to plot, and it does the rest of the job. Take those value (which are most likely in the range of 0 and 255) and create an array of those values (like above) and make sure that you divide each by 255. This approach is similar to the way Matlab allows users to modify properties of plots, figures and axis. For example, plotyy() plots the first plot, counts the number of lines in it, and sets a new defaultaxescolororder by shifting the existing order by the number of lines already plotted. I have two vectors: x and y, and a function u(x,y) representing the temperature in the point (x,y). or') plots y versus x using a dash-dot line (-. X, Y and P must be vector and must be have same lenght. If 1k by 1k arrays are passed in. There was a recent question that inspired this video. 16 responses to " A good divergent color palette for Matlab " Hboll March 21, 2012 at 2:57 pm · · Reply → Aesthetically, I agree that the colors employed in the LB colormap are indeed quite pleasing, but its not suitable for accurately displaying land/sea boundary. How do I plot the skin color distribution in HSV color space and YCBCR color space. How to customize backgrounds in matlab. Usually RGB colors have values from 0 to 255. Again, you may need to adjust how many points are used to make the graph not too jagged (if number too low) or not hang the computer (number too high). A few weeks ago a user posted a question on Matlab’s Answers forum, asking whether it is possible to display contour labels in the same color as their corresponding contour lines. The compass function takes its inputs in Cartesian format, but outputs polar plots. plot(cfit,x,y,DataLineSpec) plots the predictor and response data using the color, marker symbol, and line style specified by the DataLineSpec formatting character vector. MATLAB Features: graphics commands Command Action plot(x,y,symbol) creates a pop up window that displays the (x,y) data points specified on linearly-scaled axes with the symbol (and color) specified in the string variable symbol. It would take munging on the actual line objects within the legend itself to do that--doable if you save the handles of the objects therein and then set the properties. You can stop these lines from obscuring your data by turning the edge color off. The color, point marker, and line style can be changed on a plot by adding a third parameter (in single quotes) to the plot command. For a custom color, specify an RGB triplet or a hexadecimal color code. Line Charts in MATLAB ®. If you are drawing any picture on paper, you have different color pencils to use. However, by default MATLAB only specifies a short list of colors (just 7 as of R2013b) to cycle through, and on the other hand it can be problematic to find a good set of colors for more data series. This forces Matlab to update the graph immediately, rather than waiting until the end of the m-file. Use this function to set the color axis scaling. Learn more about plot, color 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 : the Red, Green and Blue (RGB) values. Another approach would be to use one of the MATLAB. By default it will be colored in shades of a solid color, but it also supports color mapping by supplying the cmap argument. pcolor(X,Y,C) is the same as viewing surf(X,Y,0*Z,C) using view([0 90]). When Y is a matrix, the curves are stacked showing the relative contribution of each row element to the total height of the curve at each x interval. But then I'm supposed to color (from red to blue) each point according to a 3rd variable, which is a derivative of. and the 'CN' colors that index into the default property cycle. The control file is used to call the cube_plot. plot automatically chooses colors and line styles in the order specified by ColorOrder and LineStyleOrder properties of current axes. In this session we want to look closer to how we can plot a conditional plot using Matlab Here is an easy example of a conditional plot plot f. This default color order is designed to distinguish distinct lines by well separated colors. You can view and download source code for each plot, and use it in your. Scatter in MATLAB ®. How to make a plot in MATLAB ®. This article explains some of the undocumented aspects. Matlab allows you to specify a color by the RGB (red green blue) values, for example, deep carrot orange is defined by the RGB tuple [ 0. type >> plot(x,y) The help pages use capitals to set the Matlab commands apart from other text. Examples of the plot function, line and marker types, custom colors, and log and semi-log axes. Perhaps you want to add a legend or change how the data is presented. Ever wonder how it plots blue first, then dark green, then red, then cyan, etc. plot cycles through the colors with the first line style. plots y versus x using a dash-dot line (-. A large list of colors can be found online. C can also be a color string (see ColorSpec for a list of color string specifiers) scatter(X,Y) draws the markers in the default size and color. By now, you should have learned the basics of plotting in Matlab using previous post. The following diagram illustrates the parent-child relationship in contour plots. Colors sets a list of colors to use for object parts. 'Labels' The X-axis labels, corresponding to the m groups. A pcolor plot draws rectangles with colors from the matrix c over the two-dimensional region represented by the matrices x and y. Plotting data is one of the most important tasks in Matlab programming. Here is one proper solution based on the integrated function patch in MATLAB. Different colors for an indefinite number of plots can be achieved by using the rand function to set the RGB values for the color for the plot. Vectors are 1 x n or m x 1 matrices. And each color has the corresponding color code. MATLAB supports four line styles, which you can specify any number of times in any order. Matlab = MATrix LABoratory, a numerical computing environment. I would like us to visualize the basins of attraction by coloring each starting point with a color that corresponds to the root it converges to. This default color order is designed to distinguish distinct lines by well separated colors. Whenever you create a plot in MATLAB, you need to identify the sources of information using more than just the lines. R/S-Plus MATLAB/Octave Description; help. Once I read the data in, I use mesh() to make a plot. Defines the colors used by the plot and plot3 functions to color each line plotted. The below is the code, I found to plot the distribution for ycbcr but don't understand what it means. Part 1 of a multi-part screencast on making 2D plots in MATLAB via the command line or an M-File. The Plot Function. X and Y must be vectors or matrices of the same size. In this example, we will draw. One type of 3-D plot that may be useful is a surface plot, which requires you to generate some kind of x-y plane and then. Use Plotly with MATLAB ® to share your figures with non-MATLAB ® users, to create web-based MATLAB ® dashboards, as the visualization toolbox in MATLAB ® web applications, or just for publication quality vector image export. x and y are the coordinates of the mesh's vertices and are typically the output of meshgrid. Index: MATLAB Commands List. In the next post, we will finish our discussion of 2D plots by seeing how how we can handle multiple MATLAB plots on the same axis and in the same figure. Below shows MATLAB code for how to plot the functions on three separate. How do I plot the skin color distribution in HSV color space and YCBCR color space. In addition domain borders can be displayed and superimposed to the plot data. You can use those numbers and divide the vector by 255 to use within MATLAB. An area graph displays elements in Y as one or more curves and fills the area beneath each curve. In these tutorials, we use commands/functions from MATLAB, from the Control Systems Toolbox, as well as some functions which we wrote ourselves. how to do plotting with different colors in same Learn more about plotting, color MATLAB. Contour Plot of a Function. I am new to Matlab, and I am wondering if someone here can help me with scatter plots. eps Use printcommand to generate. Seven examples of the scatter function. However, I'd like ignore the "value" or "brightness" in both color spaces and analyze rest of the layers. This article explains some of the undocumented aspects. , the first three arguments are interpreted as the coordinates), line(X,Y,Z) MATLAB cycles through the axes ColorOrder and LineStyleOrder property values the way the plot function does. You can change the color scheme by specifying a colormap. EZPLOT is an easy to use function plotter. To make this happen, you use the subplots feature of MATLAB. If you actually want to know what the colour order is for your plot, make sure the plot is open in MATLAB, then do the following: get(gca,'colororder'). You can define more colors using RGB triplets. Since we want the marker of all groups to be filled circles, we put three dots here in Matlab dots means filled circles in plotting. 5 are blue, points with between 0. This is done by splitting the plotting region into two parts. If the list contains more colors than needed, the remaining colors are. In today's post I'll provide some insight that may assist users with similar customizations in other plot types. For instance, to change the color and width of a line plot, Matlab specifies this syntax for a thick grey line (RGB value of. Watson Research Center Hawthorne, NY, 10532 Tutorial | Time-Series with Matlab 2 About this tutorial The goal of this tutorial is to show you that time-series research (or research in general) can be made fun, when it involves visualizing ideas, that can be achieved with. If you do not specify a size, MATLAB creates a colormap the same size as the current colormap. The plot function will be faster for scatterplots where markers don't vary in size or color. plot(x,y, 'g-') Doing better with colors. plot uses colors and line styles based on the ColorOrder and LineStyleOrder properties of the axes. A few weeks ago a user posted a question on Matlab's Answers forum, asking whether it is possible to display contour labels in the same color as their corresponding contour lines. Backgrounds in MATLAB ®. If 1k by 1k arrays are passed in. Specify the components (in any order) as a character vector after the data arguments. Open Mobile Search I have to plot a bar chart with sorted medians for. In this tutorial, I am decribing the classification of three dimentional [3D] MATLAB plot. stem(X,Y) plots X versus the columns of Y. 'Labels' The X-axis labels, corresponding to the m groups. plot cycles through the colors with the first line style. If you attempt to add a loglog, semilogx, or semilogy plot to a linear axis mode graph with hold on, the axis mode remains as it is and the new data plots as linear. If I create a scatter plot and tell my function to plot a. Here is how to handle a conditional plotting in Matlab. This MATLAB function retains plots in the current axes so that new plots added to the axes do not delete existing plots. By default, MATLAB axes cycle through these seven different colors when plotting lines:. The plot function is used to plot sets of data on a 2-D grid. CME 102 Matlab Workbook 2008-2009 9/55 Note: Make sure that when you use the "hold" command to make multiple plots, you should specify the color and/or line style in the plot command. 'Colormap' A color matrix, which specifies custom colors for the box plot bars. However, I'd like ignore the "value" or "brightness" in both color spaces and analyze rest of the layers. The line function has two forms: Automatic color and line style cycling. % --- Executes on button press in plot_button. I tried to create a plot without using the plot function but I am confused why it is not working. MATLAB Plot Colors, Line Type, and Marker Type. stem(X,Y) plots X versus the columns of Y. This option can be quite slow for plots with large amounts of data; your plotting speed may benefit from providing a specific location. You can put in the RGB triplet (as a vector) directly into the plot command. My mesh() plot gives me the the value of the function as a color and a surface height, like this:. Whether it's for research, a school assignment, or a work presentation, 3-D plots are great for visualizing what a complicated set of data looks like. 'OutlierMarker' The marker used to plot the outliers. So--let's make up five colors. Instead, you can display them side by side (or even in a grid). The full. You can modify any. colormaps - controls mapping of data values to colors for many plot types A "color" is a set of 3 numbers, indicating the relative amount of red, green, and blue light. This will leave the legend line color consistent with the lines on the plot; the symbol won't show. The length of the list in Colors need not be fixed, it just must not be empty. Matlab Plot Colors and Styles Tutorial45 MathLab As we have already stated here , by writing help plot or doc plot in Matlab you will be able to find the information we are about to give you down below. Part 2 of a series of screencasts on plotting in MATLAB from the command line or an M-file. I'm not sure how you'd detect what the color was if you didn't save the handle to the colored line you plotted, but maybe there is a way by using findobj() and seeing if you can get the color of any line object as a property. Learn more about surf, colormap, contrast, color, 3d plots, plot MATLAB. , the first three arguments are interpreted as the coordinates), line(X,Y,Z) MATLAB cycles through the axes ColorOrder and LineStyleOrder property values the way the plot function does. how to do plotting with different colors in same Learn more about plotting, color MATLAB Mind that matlab uses RGB values between 0 and 1, and not between 0. plot automatically chooses colors and line styles in the order specified by ColorOrder and LineStyleOrder properties of current axes. It provides many tools for data analysis and visualization. System colors are the text and background colors that your platform (for example, Microsoft ® Windows ®) uses for other applications. MATLAB allows matrix manipulations, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs written in other languages, including C, C++, C#, Java, Fortran and Python. The plot command in MATLAB help to create two-dimensional plots. The plot function in Matlab is used to create a graphical representation of some data. A pseudocolor plot is a flat surface plot viewed from above. In this group of examples, we are going to create several MATLAB plots. The values are defined with a color map ranging from 0-4 such that for each x value , the values are plotted along each of the sub-parts of y-axis according to the color code. How to plot a 3D array Hi, I am just a begineer and got to plot the multi-dimensional array in 3D and also need to show the different colors for. Create a script file and type the following code − x = [0:5:100]; y = x; 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. I am plotting multiple lines in a for loop. You can put in the RGB triplet (as a vector) directly into the plot command. Example 1. Draws image plot with a legend strip for the color scale. Part 1 of a multi-part screencast on making 2D plots in MATLAB via the command line or an M-File. plots y versus x using a dash-dot line (-. Note that linespecs are not name-value pairs. The third argument of the plot command is a one, two or three character string of the form 'cs', where 'c' is a single character indicating the color and 's' is a one or two character string indicating the type of symbol or line. If you aren't picking the color yourself, but it's getting set by the plot color order, you can still fill it with the same color as the marker edges or line plot as follows,. Yes, just use any search engine with the keywords orange RGB colour code and you should be presented with the RGB (decimal) code. Customizing axes part 4 – additional properties – Matlab HG2 axes can be customized in many different ways. Once the plot command is executed, the figure Window opens and the plot is displayed. Index: MATLAB Commands List. 1700]) using cmu. Take those value (which are most likely in the range of 0 and 255) and create an array of those values (like above) and make sure that you divide each by 255. At some point, you'll want to change the content of your plot in MATLAB. The plot function in Matlab is used to create a graphical representation of some data. Even though the changing color in the waterfall plot looks nice you should always think if it really adds some additional information to the plot. I have some code that computes some energies, etc. scatter(X,Y,S) draws the markers at the specified sizes (S) with a single color. Using color palette tables as Matlab colormaps. If I create a scatter plot and tell my function to plot a. Shaded plots in matlab Posted on January 28, 2013 by jvoigts When comparing different traces in a plot, the usual approach is to plot the traces in different colors and add the confidence bounds as thinner lines. And each color has the corresponding color code. colormaps - controls mapping of data values to colors for many plot types A "color" is a set of 3 numbers, indicating the relative amount of red, green, and blue light. Compared to PLOT, it is a hassle-free-plotter. Notice in this example we used a different way to get the domain for x,y using linspace as opposed to the above example. The trick is to set maxcolors to the number of colors you want in your plot. So, I set the color order to one obtained from our colormaps. Learn more about plot, color MATLAB. Check this out. It is often very easy to "see" a trend in data when plotted, and very difficult when just looking at the raw numbers. Colormaps are three-column arrays containing RGB triplets in which each row defines a distinct color. Whenever you create a plot in MATLAB, you need to identify the sources of information using more than just the lines. In this example, we will draw. The red, green and blue use 8 bits each, which have integer values from 0 to 255. Ezplot vs plot in Matlab Plotting with EZPLOT. Here is one proper solution based on the integrated function patch in MATLAB. I think he wanted separate plots for each (not all 4 on the same graph), and for each plot to have different colors in each time segment depending on the word in column 6 (starting, stopping, moving). ("C" is color matrix) colormap(C/255); % in matlab import matplotlib as mpl # in python. You specify the color of the line like this. Guest authors: Harrison Rose and Breanna Stillo. Example 1. The plot command in MATLAB help to create two-dimensional plots. In this session we want to look closer to how we can plot a conditional plot using Matlab Here is an easy example of a conditional plot plot f. Because data is often not regularly sampled, surfaces are. Seven examples of linear and logarithmic axes, axes titles, and styling and coloring axes and grid lines. plot(x,y, 'color',[0. If the input vector contains complex numbers, MATLAB plots the real part of each element (on the horizontal axis) versus the imaginary part (on the vertical axis). Seven examples of linear and logarithmic axes, axes titles, and styling and coloring axes and grid lines. It is very useful to quickly specify such basic line properties. 5, are also. All you need to do to use it is to state the function you would like to plot, and it does the rest of the job. Note that linespecs are not name-value pairs. Matlab allows you to specify a color by the RGB (red green blue) values, for example, deep carrot orange is defined by the RGB tuple [ 0. If you do not specify a size, MATLAB creates a colormap the same size as the current colormap. MATLAB Plot Colors, Line Type, and Marker Type. Here is how to handle a conditional plotting in Matlab. Since a lot of geologic data is naturally of more than one dimension, we have use for these capabilities. 1:2*pi; subplot(2,2,1); plot(x,sin(x)); subplot(2,2,2);. Notice lack of line color in the legend. Matlab Plot Colors and Styles Tutorial45 MathLab As we have already stated here , by writing help plot or doc plot in Matlab you will be able to find the information we are about to give you down below. You can specify colors using a vector. This MATLAB function retains plots in the current axes so that new plots added to the axes do not delete existing plots. Toggle Main Navigation. plots data in the x and y vectors by connecting each pair of points with a red dashed line. Following is a list of commands used in the Control Tutorials for MATLAB and Simulink. contour(z,n) command will plot the curve with ‘n’ color levels. MATLAB ships with several built-in colormaps that are useful in different situations. It provides many tools for data analysis and visualization. Even though the changing color in the waterfall plot looks nice you should always think if it really adds some additional information to the plot. You can enter a command by typing it at the MATLAB prompt '>>' on the Command Window. plot cycles through the colors with the first line style. The Plot Function. 'OutlierMarker' The marker used to plot the outliers. 'Labels' The X-axis labels, corresponding to the m groups. Part 2 of a series of screencasts on plotting in MATLAB from the command line or an M-file. A large list of colors can be found online. AFIK, when I use the plot function it creates figure, axis, line objects and then sets the property of each object accordingly. The basic data structure in MATLAB is the array, an ordered set of real or complex elements. We covered the syntax and overall structure of creating matplotlib plots, saw how to modify various components of a plot, customized subplots layout, plots styling, colors, palettes, draw different plot types etc. but I do not have access to MATLAB this evening to test it out. MATLAB supports four line styles, which you can specify any number of times in any order. I have a dataset of images representing human skin. Below is my code and picture of the problem. MATLAB Tutorial - Function Plotting Basics - Plot multiple lines Learn MATLAB in simple and easy steps starting from basic to advanced concepts with examples. Note, that the absolute values you specify in the palette definition were automatically scaled to your min and max values (0 and 18 in this case). Otherwise all the plots will be of the same default (blue) color and line style. Toggle Main Navigation. ), places circular markers (o) at the data points, and colors both line and marker red (r). How can I plot the difference between two curves graphically in MATLAB? I want to show the difference between two curves in MATLAB but without using the program in the MATLAB editor, just using. To use the same interval for both x and y, specify xyinterval as a two-element vector of the form [min max]. R/S-Plus MATLAB/Octave Description; help. Powerful builtin functions makes Maltlab a powerful tool. Color-color plots can be used to separate objects of different types, such as distinguishing galaxies from stars. This is a very useful tool in all types of scientific and math based research allowing the user. In these tutorials, we use commands/functions from MATLAB, from the Control Systems Toolbox, as well as some functions which we wrote ourselves. Even though the changing color in the waterfall plot looks nice you should always think if it really adds some additional information to the plot. Note that after 20 folds, the thickness is 5243 inches (437 feet). Bar plot with bars in different colors. Ever wonder how it plots blue first, then dark green, then red, then cyan, etc. Plotting Data Using MATLAB: In this tutorial you will learn how to use the MATLAB program from MathWorks to create a script file that will make a set of data and plot that data. The plot on the right comes from Fig. For versions after R2014b, this follows the parula colour map, where the first plot would be a lighter blue followed by the second plot being a copper orange of sorts.