Multiple plot line colors

Extend default "recycle every 6 colors" plot behavior to N different colors

You are now following this Submission

By default MATLAB "recycles" every 6 plot line colors. Replace default "recycle every 6 lines" behavior of MATLAB graphics functions (e.g. plot) by N different colors usin this simple script.

Cite As

Igal (2026). Multiple plot line colors (https://in.mathworks.com/matlabcentral/fileexchange/49170-multiple-plot-line-colors), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0