colormap
13 次查看(过去 30 天)
显示 更早的评论
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:)
0 个评论
采纳的回答
Bjorn Gustavsson
2011-5-31
Try - and you'll see.
3 个评论
Bjorn Gustavsson
2011-5-31
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".
更多回答(1 个)
Walter Roberson
2011-5-31
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.)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 White 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!