File Exchange Pick of the Week

April 3rd, 2009

Light Bartlein Color Maps

Bob's pick this week is Light Bartlein Color Maps.

That's right, my own submission. Here's why. Last week Loren blogged about Four Color Images. Her final point, Colormaps are Important referenced some fairly well known scientific work by Light and Bartlein. Jody wished to see these colormaps in MATLAB. Rather than just cross link my submission from Loren's blog and leave it at that, this blog entry provides a place for more focused discussion. A penny for your thoughts...


Get the MATLAB code

Published with MATLAB® 7.8

3 Responses to “Light Bartlein Color Maps”

  1. Daniel Armyr replied on :

    Is it a feature or a limitation that the colourmap is not smooth?

  2. Bob replied on :

    On the submission page follow Jody’s link. Scroll down to “Modified Spectral Scheme, 11 Steps” and note that coarse granularity of that map.


    Example 2 from LBMAP tried to be faithful. If it does not bear a strong resemblence, that would be a bug on my part. Either way, it should look much smoother with more levels.

  3. Jody Klymak replied on :

    I think these are great colormaps and excellent candidates for inclusion in the standard set.

    I’d also like to see a few standard earth and sea colormaps. If I see another hydrographic map with depth represented as jet I’ll blow a gasket!

    GMT has some nice colormaps. Not sure what the copyright is: there is an
    interactive gallery here. Note that their colormaps are non-linear, in that each colour can represent a differing range of data.

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Bob, Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

  • Jon: This is a useful tool - but in fairness I have to point out that it is remarkably similar to a routine of the...
  • oleg: The author has implemented skewness, kurtosis and checks answering appropriately to the critic.
  • Ashok: how to store 10 or more random number in a loop a loop for i = 1:n mean(i) = input(’enter the mean value...
  • Ben: Doug, Thanks for the very helpful videos! Uitables seem like a convenient way to make a customized property...
  • oleg: Allstats has no checks, no comments and could also be improved (talking about prctile implementatio). Not to...
  • Todd: Additional information and a link to download free MATLAB and Simulink LEGO MINDSTORMS NXT code can be found at...
  • Doug: @Leo, Here is the “English version” of that code. “vec = []” makes an empty variable...
  • leo: Dear Doug I have a question in your code ‘October 9th, 2009 at 13:53′ vec = []; vec = [vec val]; I...
  • Shanker Keshavdas: You sir, are a gentleman and a scholar… No really, helped me out a lot. As to what is...
  • Quan Zheng: how can I get a copy of stepspecs.m?

These postings are the author's and don't necessarily represent the opinions of The MathWorks.