Change circular histogram scale
이전 댓글 표시
Hi,
I plot couple of circular histograms using circ_plot from Circular Statistics Toolbox for Matlab ( http://www.jstatsoft.org/v31/i10) and I would like to set the same histogram scale for different plots. Is it possible?
Thanks
답변 (1개)
Grzegorz Knor
2011년 9월 6일
circ_plot uses standard matlab rose function. Unfortunatelly there is no 'rlim' (something like xlim) property. You can fix it by simple trick, just plot polar(0,rmax,'-k') before you use circ_plot, where rmax is something like 'rlim':
rmax = .1;
% Examples:
figure
polar(0,rmax,'-k')
hold on
alpha = randn(60,1)*360;
circ_plot(alpha,'hist',[],12,true,true)
hold off
figure
polar(0,rmax,'-k')
hold on
alpha = randn(120,1)*360;
circ_plot(alpha,'hist',[],20,true,true,'linewidth',2,'color','r')
hold off
figure
polar(0,rmax,'-k')
hold on
alpha = randn(160,1)*360;
circ_plot(alpha,'hist',[],20,true,true,'linewidth',2,'color','r')
hold off
카테고리
도움말 센터 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!