colourplot

Colours every plot line uniquely
1.5K Downloads
Updated 22 Jun 2009

View License

A short function to colour plots with all the colours of the rainbow. Gives better output than trying to select good colours in advance.

figure; hold on; x = 1:10;
plot(x,x);
plot(x,-x);
colourplot;

Cite As

Will Robertson (2026). colourplot (https://uk.mathworks.com/matlabcentral/fileexchange/11235-colourplot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Annotations in Help Center and MATLAB Answers
Version Published Release Notes
1.1.0.0

Update, and add BSD licence to the source.

1.0.0.0