2
我正在绘制一个盒形图,所以我在MATLAB中使用下面的代码。我对matlab非常陌生。不能在MATLAB中绘制一个盒形图的线条
for k=1:N % running through k categories in the plot
patch(...); % The box
% now drawing the whiskers and percentiles
line(...); % the median
line(..); % the 25th percentile
line(..); % the 75th percentile
line(...); % the max
line(..); % the min
end
% THIS LINE ONLY IS DISPLAYED NOT THE BOX-PLOT, WHY??
% A poly-line passing median of each box
plot([1:N]-0.5, Ys, '-Xr', 'LineWidth', 4, 'MarkerSize', 12);
在最后陈述时只得到显示,而不是箱线图当我注释掉plot
语句画的直线,则显示箱线图。
但是,我怎样才能让他们显示一个在另一个之上?