Thread Subject: Nonlinear colorbar

Subject: Nonlinear colorbar

From: juckou

Date: 1 Dec, 2008 12:42:45

Message: 1 of 4

Dear all

Is it possible to create a colorbar using the pcolor o 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

Subject: Nonlinear colorbar

From: juckou

Date: 2 Dec, 2008 00:48:57

Message: 2 of 4

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

Subject: Nonlinear colorbar

From: Paul

Date: 2 Dec, 2008 13:27:01

Message: 3 of 4

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.

Subject: Nonlinear colorbar

From: Carlos Adrian Vargas Aguilera

Date: 2 Dec, 2008 14:04:02

Message: 4 of 4

take a look to:

http://www.mathworks.com/matlabcentral/newsreader/view_thread/237071#604527

Carlos

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com