Creating a heat map that would color different sectors of a circle
Mostrar comentarios más antiguos
Hi all,
I have plotted 197 circles each with 3 sectors on a single plot. I have a value (a number between 1 and 30) associated with each sector and would like to create a heat type map that would color each sector of a circle based on its associated value. The values are stored in 3x197 matrix.
Any help is much appreciated.
Respuesta aceptada
Más respuestas (1)
Thorsten
el 8 de Oct. de 2014
You can define a colormap with 30 entries with, e.g.,
cmap = jet(30);
and then draw a filled circle segment with code from http://www.mathworks.com/matlabcentral/answers/6322-drawing-a-segment-of-a-circle and color the segment by using the number as index to your colormap. You have to do this for all three segments for all your 197 circles.
1 comentario
Amir A
el 8 de Oct. de 2014
Categorías
Más información sobre Blue en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
