问题:
原代码
bar(num,duration,'EdgeColor',[0.75 0.75 0.75],'linewidth',1)
legend('SPEI mon','SPEI movingAvg','orientation','horizontal')
legend boxoff;
灰色bar?蓝色图例?
解决
其实是bar画错了,Facecolor没指定但太窄看不出来
bar(num,duration,'EdgeColor',[0.75 0.75 0.75],'FaceColor',[0.75 0.75 0.75],'linewidth',1)