Code covered by the BSD License  

Highlights from
colorscale

Be the first to rate this file! 21 Downloads (last 30 days) File Size: 2.96 KB File ID: #2558
image thumbnail

colorscale

by

 

18 Oct 2002 (Updated )

Add a color scale bar using part of the figure's colormap.

| Watch this File

File Information
Description

COLORSCALE creates a color scale for use with an integer-valued image which has been encoded and quantized via a monotonic transformation from a real-valued array. The original array has physically meaningful units, but the image does not. The transformed image has been displayed with a direct mapping to the figure's colormap. (That is, the IMAGE object has a CDATAMAPPING of 'direct'.) The image and/or color scale may not use the entire colormap. The colormap may contain special values for null data areas, and these special values may be excluded from the scale bar. Or, the colormap may be deliberately partitioned and shared with a different image in the same figure, and that image may have its own, entirely distinct, color scale. In these cases, unlike the standard COLORBAR function, COLORSCALE can limit the displayed colors to the appropriate interval within the figure's colormap.

Acknowledgements

This file inspired Earth Observing System Data Visualization.

Required Products MATLAB
MATLAB release MATLAB 6.5 (R13)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
14 Apr 2005 Dan S.

Actually, the original error message was:
??? Attempt to execute SCRIPT colorscale as a function.

14 Apr 2005 Dan S.

I received this error message when calling this function. I will try to convert it to R14 format but haven't had much luck yet.

??? One or more output arguments not assigned during call to 'C:\ent\appl\prod\MatLab\toolbox\matlab\specgraph\contourf.m (contourf)'.

Updates
29 Jul 2009

Shortened summary. Adjusted wrapping in comment block. Updated copyright. Removed minor lint.

14 Dec 2011

Removed extraneous files. Minor clean-up and lint removal in colorscale.m.

Contact us