Code covered by the BSD License  

Highlights from
colourplot

4.0

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

colourplot

by Will Robertson

 

31 May 2006 (Updated 22 Jun 2009)

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
25 Nov 2006 Sam Daly

Doesn't convert to grayscale well for printing.

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

11 Sep 2008 w s

Works excellent! Thanks

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.

27 Jul 2009 Ian Harris

Thanks, Will - a real time saver.

Please login to add a comment or rating.
Updates
22 Jun 2009

Update, and add BSD licence to the source.

Tag Activity for this File
Tag Applied By Date/Time
annotation Will Robertson 22 Oct 2008 08:27:17
customization Will Robertson 22 Oct 2008 08:27:17
plot Will Robertson 22 Oct 2008 08:27:17
color Will Robertson 22 Oct 2008 08:27:18
colour Will Robertson 22 Oct 2008 08:27:18
graphics Will Robertson 22 Oct 2008 08:27:18

Contact us at files@mathworks.com