File Exchange

image thumbnail

colourplot

version 1.1 (2.58 KB) by

Colours every plot line uniquely

3 Downloads

Updated

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;

Comments and Ratings (5)

Ian Harris

Thanks, Will - a real time saver.

Oliver Woodford

For a highly coloured gamut that converts to greyscale, see sc.m and use the 'contrast' colourmap.
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=16233
Feel free to use the code.

w s

Works excellent! Thanks

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...

Sam Daly

Doesn't convert to grayscale well for printing.

Updates

1.1

Update, and add BSD licence to the source.

MATLAB Release
MATLAB 7.2 (R2006a)

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

» Watch video