How to plot Nightingale Rose Chart in Matlab
Mostrar comentarios más antiguos
Hi all, I want to create a pie chart (Nightingale Rose Chart) Does anyone know how to do this?

This pie chart is an example of what I would like to achieve.
Hopefully this makes it a bit clearer. Thanks in advance!
1 comentario
David K.
el 26 de Ag. de 2019
It looks like polarhistogram is what you want. It looks like you will need to scale your data to be from 0 to 2pi and text can be put in with the text command. I am not sure how you could do color but it may be possible.
Respuesta aceptada
Más respuestas (2)
suling yin
el 3 de Sept. de 2019
Editada: suling yin
el 3 de Sept. de 2019
0 votos
3 comentarios
Raunak Gupta
el 3 de Sept. de 2019
Hi,
You can plot seperate categories as below but for legend you have to enter them as a text field in App Designer. For putting seperate color without plotting seperate part is there in histogram but not in polarhistogram. So , you can use below for plotting one pie chart.
close all
p = polaraxes;
polarhistogram(p,'BinEdges',[0 pi/3],'BinCounts',[0.56]);
hold on
polarhistogram(p,'BinEdges',[pi/3 2*pi/3],'BinCounts',[0.65]);
polarhistogram(p,'BinEdges',[2*pi/3 pi],'BinCounts',[0.35]);
polarhistogram(p,'BinEdges',[pi 4*pi/3],'BinCounts',[0.8]);
polarhistogram(p,'BinEdges',[4*pi/3 5*pi/3],'BinCounts',[0.57]);
polarhistogram(p,'BinEdges',[5*pi/3 2*pi],'BinCounts',[0.7]);
p.RLim = [0 1];
p.ThetaTick = [];
p.RTickLabel = {};
hold off
Hope this helps.
suling yin
el 3 de Sept. de 2019
Raunak Gupta
el 16 de Dic. de 2019
Hi,
While plotting a single polarhistogram you may mention the color with 'FaceColor' option with predefined color string or RGB triplets.
Hope it helps.
suling yin
el 14 de Dic. de 2019
0 votos
Categorías
Más información sobre Polar Plots 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!