Graphics    

Line Styles Used for Plotting - LineStyleOrder

The axes LineStyleOrder property is analogous to the ColorOrder property. It specifies the line styles to use for multiline plots created with the plot and plot3 functions. MATLAB increments the line style only after using all of the colors in the ColorOrder property. It then uses all the colors again with the second line style, and so on.

For example, define a default ColorOrder of red, green, and blue and a default LineStyleOrder of solid, dashed, and dotted lines.

Then plot some multiline data.

MATLAB cycles through all colors for each line style.


 Defining the Color of Lines for Plotting