Getting N colors using imagesc
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Walter Roberson
il 26 Giu 2012
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Orange in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!