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

采纳的回答

Walter Roberson
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 个)

类别

Help CenterFile Exchange 中查找有关 Orange 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by