How to plot Nightingale Rose Chart in Matlab
    5 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    suling yin
 le 26 Août 2019
  
    
    
    
    
    Commenté : Raunak Gupta
    
 le 16 Déc 2019
            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 commentaire
  David K.
      
 le 26 Août 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. 
Réponse acceptée
  Raunak Gupta
    
 le 29 Août 2019
        Hi, 
In my understanding the pie charts you are trying to plot can be drawn using polarhistogram. From the figure you have attached I can see there are 6 bins in the polarhistogram object. 
I am assuming you have the background figure that is similar to a map. So, you can generate the individual polarhistogram using below code: 
close all 
p = polaraxes; 
polarhistogram(p,'BinEdges', linspace(0,2*pi,7),'BinCounts',[0.3 0.1 0.2 0.8 0.57 0.7]); 
p.RLim = [0 1]; 
p.ThetaTick = []; 
p.RTickLabel = {}; 
The ‘BinCounts’ parameter can be changed based on the values you have in each category. 
For Adding Multiple polarhistogram you may use App Designer. In that you can add multiple Polar Axes on top of the figure that contains the map. For drawing polarhistogram you need to have the positions of the axes.  
Currently for plotting Nightingale Rose Chart directly with a function is not supported. You may use App Designer for plotting separately every individual object. 
You may refer to following for using App Designer: 
0 commentaires
Plus de réponses (2)
  suling yin
 le 3 Sep 2019
        
      Modifié(e) : suling yin
 le 3 Sep 2019
  
      3 commentaires
  Raunak Gupta
    
 le 16 Déc 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.
Voir également
Catégories
				En savoir plus sur Pie Charts dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


