varycolor
Version 1.0.0.0 (1.83 KB) by
Daniel Helmick
Provides maximum color variation for lines on plots.
Editor's Note: This file was selected as MATLAB Central Pick of the Week
I was unhappy with the current implementation of the color schemes. This provides a way for a program to dynamicly scale the number of different colors on plots, and it ensures there won't be any color overlap.
Cite As
Daniel Helmick (2026). varycolor (https://www.mathworks.com/matlabcentral/fileexchange/21050-varycolor), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2007a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Annotations in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: varycolor - projector friendly, CMAPLINE, Generate maximally perceptually-distinct colors, Colors for plotting, Linkage Solver, Add Legend Automatically Based on Tag Property Value
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
