Effacer les filtres
Effacer les filtres

rose diagram

5 vues (au cours des 30 derniers jours)
Nicolas
Nicolas le 13 Fév 2012
Modifié(e) : Cedric le 10 Oct 2013
Hi,
I'm plotting rose diagrams using the function rose. I would like to have the outer circle of my rose diagram to be representative of the maximum value of the histogram.
However I found in the 'polar' function, those lines:
cax = newplot(cax);
next = lower(get(cax, 'NextPlot'));
hold_state = ishold(cax);
The maximum value is defined my 'maxrho' in the polar function, however the limits of my rose diagram are calculated using:
set(cax, 'DataAspectRatio', [1, 1, 1], 'PlotBoxAspectRatioMode', 'auto');
v = [get(cax, 'XLim') get(cax, 'YLim')];
The results is sometimes the limits (X and Y) equal the maximum value 'maxrho', but sometimes not.
I don't understand why it is not always selecting for the maximum value? Anyone could help me to change to fix it to maximum value?
Thank you very much

Réponses (1)

C.J. Harris
C.J. Harris le 13 Fév 2012
The workaround I use to get the correct limits set on a polar plot is to simply draw a circle at your desired maximum, and set to the plot colour to match your background. Obviously not the nicest solution, but should work if I understand your problem correctly.
  1 commentaire
Nicolas
Nicolas le 13 Fév 2012
Hi, thanks.
I did the same in the end and it's fine !

Connectez-vous pour commenter.

Catégories

En savoir plus sur Polar Plots 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!

Translated by