Code covered by the BSD License  

Highlights from
colourplot

4.0

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

colourplot

by

 

31 May 2006 (Updated )

Colours every plot line uniquely

| Watch this File

File Information
Description

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;

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.
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=16233
Feel free to use the code.

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

25 Nov 2006 Sam Daly

Doesn't convert to grayscale well for printing.

Updates
22 Jun 2009

Update, and add BSD licence to the source.

Contact us