colormap

45 views (last 30 days)
S
S on 31 May 2011
Hi all,
I am using colormap command and intereseted to know what is the maximum and minimum value I can define for the size. for example in Help it says
colormap(hsv(128)): creates an hsv colormap with 128 colors
How far can I increase this value? I know 256 is ok, I even tried 1000 but I just want to know if it is logic to increase it to what ever I want. Appreciate your help S:)

Accepted Answer

Bjorn Gustavsson
Bjorn Gustavsson on 31 May 2011
Try - and you'll see.
  3 Comments
Bjorn Gustavsson
Bjorn Gustavsson on 31 May 2011
I honeslty have no idea. Just try and experiment and you'll see. At some point the display settings will limit the number of colours you can show on the screen, the printer will only give you just so many levels and so on, then comes the question of how many levels you and your audience can separate with your eyes. I just tried jet with some random sizes between 10 and 1e6, and on my screen I could not see much difference between jet(300) and jet(1000), with the image I was using. This might of course vary between combinations of colourmaps, displays, images and eyes. So your measure might be different than mine - thus the recommendation "Try - and you'll see".
S
S on 31 May 2011
Thank you very much indeed. yes you are right after a certain stage you see no difference in the image. Once again, thank you!:)

Sign in to comment.

More Answers (1)

Walter Roberson
Walter Roberson on 31 May 2011
The minimum size you can use is 1, and the maximum size you can use is the largest array you can construct in your software (or perhaps a bit less than that due to the memory required by the routine that computes the appropriate color entries.)
  1 Comment
S
S on 31 May 2011
Thank you Walter.

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!