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

Contact us at files@mathworks.com