How can I plot an image with an exponential color table?

5 views (last 30 days)
I work with satellite data, and often plot data using code similar to:
surfm(lat,lon,Precip)
contourcmpa([0.0:0.1:12.0],'jet')
Recently, my work group suggested that if the color table was exponential instead of linear, it would be easier to compare images with both low and high rain rates. However, I haven't seen anything in the help that does this, and my attempts so far have ended with the error 'CDELTA must consist of evenly spaced elements'. Any suggestions?

Answers (1)

Image Analyst
Image Analyst on 15 Jan 2015
It's a 256 row by 3 column colormap. You can put whatever color you want into the rows. What do you mean by exponential? Like a gray scale ramp that has a bend to it? Or a color one like jet that has most of the colors squished into one end? See my attached demos. I have another one on a different computer that will plot the RGB curves for the standard colormaps and I'll upload that later.
  2 Comments
Cindy Combs
Cindy Combs on 15 Jan 2015
The best description would be closer to having the colors squished to one end, or where there is more color change between the smaller values than there is for the higher values. Thank you for the examples - It helps explain how to work with the RGB values.
Image Analyst
Image Analyst on 15 Jan 2015
See attached demo that plots the curves for the standard color maps.

Sign in to comment.

Categories

Find more on Colormaps in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!