
Specify Plot Colors - MathWorks
Specify Plot Colors MATLAB ® creates plots using a default set of colors. The default colors provide a clean and consistent look across the different plots you create. You can customize the colors if you need to. Many plotting functions have an input argument such as c or colorspec for customizing the color. The objects returned by these functions typically have properties for …
colororder - MathWorks
colororder(colorarray) sets the palette for the current figure's color order. The color order controls the ordering of the colors MATLAB ® uses for plotting multiple data series within an axes. Specify colorarray as a matrix of RGB triplets or an array of color names such as ["red" "green" "blue"].
Specify Line and Marker Appearance in Plots - MathWorks
Specify Line and Marker Appearance in Plots MATLAB ® creates plots using a default set of line styles, colors, and markers. These defaults provide a clean and consistent look across the different plots you create. If you want, you can customize these aspects of your plot.
Control Colors, Line Styles, and Markers in Plots - MathWorks
Control Colors, Line Styles, and Markers in Plots 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. You can customize the colors, line styles, and markers when you call plotting functions. For example, this code plots a solid red line and a dashed green line with …
orderedcolors - MathWorks
orderedcolors("gem") returns the colors of the gem color palette. Each row of the three column matrix C contains the red, green, and blue intensities for a specific color.
Change Color Scheme Using a Colormap - MathWorks
MATLAB® uses a default color scheme when it displays visualizations such as surface plots. You can change the color scheme by specifying a colormap. Colormaps are three-column arrays containing RGB triplets in which each row defines a distinct color. For example, here is a surface plot with the default color scheme.
ColorSpec (Color Specification) - MathWorks
The short names and long names are character vectors that specify one of eight predefined colors. The RGB triplet is a three-element row vector whose elements specify the intensities of the red, green, and blue components of the color; the intensities must be in the range [0 1]. The following table lists the predefined colors and their RGB triplet equivalents.
Colormaps - MathWorks
Colormaps define the color scheme for many types of visualizations, such as surfaces and patches. Colorbars illustrate the relationship between the colors of the colormap and your data. Colormaps are three-column arrays containing RGB triplets in which each row defines a …
colormap - MathWorks
colormap map sets the colormap for the current figure to the specified predefined colormap. For example, colormap hot sets the colormap to hot. If you set the colormap for the figure, then axes and charts in the figure use the same colormap. The new colormap is the same length (number of colors) as the current colormap.
Control Automatic Selection of Colors and Line Styles in Plots
Control Automatic Selection of Colors and Line Styles in Plots When you plot multiple data sets together in the same axes, MATLAB ® helps you to distinguish your data sets by varying their appearance. For example, when you plot multiple lines, MATLAB assigns each line a color from a set of colors according to their order of creation.