View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

4.0 | 3 ratings Rate this file 5 Downloads (last 30 days) File Size: 2.58 KB File ID: #11235 Version: 1.1




31 May 2006 (Updated )

Colours every plot line uniquely

| Watch this File

File Information

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;

MATLAB release MATLAB 7.2 (R2006a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
27 Jul 2009 Ian Harris

Thanks, Will - a real time saver.

16 Sep 2008 Oliver Woodford

For a highly coloured gamut that converts to greyscale, see sc.m and use the 'contrast' colourmap.
Feel free to use the code.

Comment only
11 Sep 2008 w s

Works excellent! Thanks

27 Nov 2006 Will Robertson

Sam: sorry, you must have been misled. This package is designed for creating *coloured* plots. I you can suggest an algorithm that gives a nice spread of colours that also corresponds to smoothly varying greyscale, I'll happily incorporate it...

Comment only
25 Nov 2006 Sam Daly

Doesn't convert to grayscale well for printing.

22 Jun 2009 1.1

Update, and add BSD licence to the source.

Contact us