我使用Plot vector (or arc) onto a rose plot. MATLAB上的答案绘制了我的玫瑰图,但我的图如下所示:
我的代码是:
circ_plot(BB,'hist',[],20,true,true,'linewidth',2,'color','r')
hold on
plot([0 cos(mean)*a], [0 sin(mean)*a], 'r')
%// Plot error as many shaded triangles that compose a circular wedge
t = linspace(-Var/2+mean,Var/2+mean,100); %// increase "100" if needed
for k = 1:numel(t)-1
h = patch([0 cos(t(k))*a cos(t(k+1))*a 0], ...
[0 sin(t(k))*a sin(t(k+1))*a 0], [.5 0 0], 'edgecolor', 'none');
%// change color [.5 0 0] to something else if desired. Note also alpha
set(h,'Facealpha',.3) %// make transparent
end
%// Place rose on top by rearranging order of axis children
ch = get(gca,'children');
set(gca,'children',[ch(2:end); ch(1)]);
有没有办法让我的误差阴影区域沿着圆的周长,而不是三角形?
谢谢
1条答案
按热度按时间zysjyyx41#
我不知道为什么,但今天它运行得很好。我什么都没改变。感谢您的回复和帮助。不幸的是,由于我的数据的敏感性,我无法发布。再次感谢。