Wind_rose
Wind rose of direction and intensity
Author: M MA

Hi everyone. I've been using de wind_rose function for a few days and first of all, I must say it's awesome. But there is still one point that I can't fixe, maybe it cannot be fixed.

With the 'n' parameter, it's possible to change the number of directions subdivision. For example, 'n',8 will divided the 360 degrees into 8 similar parts (45 grads each time). But now, if I want it to be divided into 8 parts, but with different start and end points such as: 25:70,70:115,115:160, etc... How should I proceed?

Can you get my question ? Hope so ;)

I'd be really thankful if you could help me with this problem. Thanks a lot.

13 Nov 2012

Wind_rose
Wind rose of direction and intensity
Author: M MA

F4b,
Yes this is possible, but there are two caveats:
1. You first need a criterion of your own for determining what defines an outlier.
2. You have to do a *little* extra coding to highlight the points. Here is an example where we highlight the most positive point only. This is the case because I deliberately have avoided adding too many extra features such as this into the function. The idea is to make it easy for others to modify the plots as needed.
Here is a toy example:
clf, H=notBoxPlot(randn(40,5));
hold on
for ii=1:5
y=get(H(ii).data,'YData');
x=get(H(ii).data,'XData');
f=find(y==max(y));
plot(x(f),y(f),'or','markersize',10)
end
hold off

Hello,
very nice function!
I was wondering if it would be possible to show a label for each point in order to identify which points are outliers.
Thank you very much,
F4b

Mathew, what you're asking for is already possible with just one more line of code:
clf,H=notBoxPlot(rand([30,3])); set(H(2).data,'markerfacecolor','g')
set(H(3).data,'markerfacecolor','c')
legend([H.data],'A','B','C') %add legend
set(gca,'XTickLabel',{'A','B','C'})

This is a great function, but would be even more great if it displayed the legend so that if you plot two groups, the legend corresponds automatically to the markerfacecolor set in the function.

Comment only