Getting N colors using imagesc
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuesta aceptada
Walter Roberson
el 26 de Jun. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Orange en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!