Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Nonlinear colorbar
Date: Tue, 2 Dec 2008 13:27:01 +0000 (UTC)
Organization: University of Memphis
Lines: 13
Message-ID: <gh3d35$l44$1@fred.mathworks.com>
References: <13795536.1228135396324.JavaMail.jakarta@nitrogen.mathforum.org> <15340185.1228178968315.JavaMail.jakarta@nitrogen.mathforum.org>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1228224421 21636 172.30.248.35 (2 Dec 2008 13:27:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 2 Dec 2008 13:27:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 233092
Xref: news.mathworks.com comp.soft-sys.matlab:504353


juckou <ja79@hw.ac.uk> wrote in message <15340185.1228178968315.JavaMail.jakarta@nitrogen.mathforum.org>...
> Any suggestions on my previous post? Thank you very much?: 
> 
> Dear all
> 
> Is it possible to create a colorbar using the pcolor or imagesc functions where the values in the colorbar increase not following a linear progression? I mean, if I have for instance a chlorophyll concentration image and I have its values clustered between 0-1, 1-10 and 10-100, I would like to have the colorbar going from 0 to 1, then from 1 to 10 and finally from 10 to 100 (rather than having a normal one going from 1 to 100 that wouldn't allow to notice differences for concentrations relatively close).
> 
> Thanks in advance
> 
> juckou


I would take the logarithm of the concentration and use this as the color scheme.