colourplot

Colours every plot line uniquely

You are now following this Submission

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://www.mathworks.com/matlabcentral/fileexchange/11235-colourplot), 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.1.0.0

Update, and add BSD licence to the source.

1.0.0.0