Getting N colors using imagesc
3 ビュー (過去 30 日間)
古いコメントを表示
Dear all, for one of my project I have to display the values of some matrices. These matrices are made up of integers number from 1 to N (~700). I have displayed these matrices using imagesc, but my feeling is that only 64 colors are displayed so that I actually lose information about what is going on. So my question is: how can I get imagesc (or another function) to show all the N colors so that the figure looks "smoother" (both on screen and on file?). Should I use some special renderer? (I am using painters now)
Thanks in advance for your help, Cheers, Luca
0 件のコメント
採用された回答
Walter Roberson
2012 年 6 月 26 日
Possibly the colormap you are using only has 64 colors by default.
When you are loading a colormap, you give its name; the name of the colormap is really a function, and the function allows an optional argument that indicates the number of entries to generate.
For example, instead of saying
colormap(hot)
you can say
colormap(hot(700))
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Orange についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!