Image overlay and colormaps

6 views (last 30 days)
Zacharias Kandylakis
Zacharias Kandylakis on 19 Nov 2014
Edited: Zacharias Kandylakis on 19 Nov 2014
I am using the sc() function to overlay two images
1. a greyscale background
2. an image of pH levels with a custom colormap
( range of values is appr. 2.9 to 4 )
The visual result is as intended, however when I show the colorbar() I get the grayscale bar. I need to show the custom map colorbar. It is also important that the values are not scaled in 0-1 but remain at 2.9-4.
P.S. I have tried using built in cmaps such as 'prob','hot' and I have the same problem.

Answers (0)

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!