I'm trying to plot this box plot like this:
我尝试了这段代码:
boxplot(randn(10,98)','notch','on')
set(0,'DefaultAxesFontName', 'Cambria Math')
ylabel('Normalized Parameter');
set(gca,'FontSize',14,'fontWeight','bold');
set(gca,'TickLabelInterpreter','tex');
set(gca,'XTickLabel',{'a_{0}','a_{1}','a_{2}','a_{3}','a_{4}','b_{1}','b_{2}','b_{3}','b_{4}','w'})
color = 'b';
h = findobj(gca,'Tag','Box');
for j=1:length(h)
patch(get(h(j),'XData'),get(h(j),'YData'),color,'FaceAlpha',1);
end
lines = findobj(gcf, 'type', 'line', 'Tag', 'Median');
set(lines,'linewidth',1, 'Color', 'r');
如何更改边缘和中线颜色?