boxplot_fromstats

버전 1.0.0 (2 KB) 작성자: Allison Ho
Create a fake box and whisker plot from pre-determined statistics (mean, standard deviation, and min/max).
다운로드 수: 51
업데이트 날짜: 2022/10/31

라이선스 보기

Given pre-determined statistics (mean, standard deviation, and min/max), BOXPLOT_FROMSTATS uses errorbar.m and patch.m to create a fake box and whisker plot, similar to boxchart.m. Options include customizing colormap, width of box, and linewidth.
Sample code:
data = randn(5,10)*2+31;
means = mean(data');
stds = std(data');
mins = min(data');
maxs = max(data');
% -------------------------------------------------------------------------
lw = 1.2;
cmap = jet(length(means));
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
figure; clf; hold on;
boxplot_fromstats(gca,means,stds,mins,maxs,{'A', 'B', 'C', 'D', 'E'},...
'cmap', cmap, 'LineWidth',lw)
ylim([25 38])
ylabel('Temperature (^oC)')
grid on; box on;
set(gca, 'FontSize', 14)

인용 양식

Allison Ho (2026). boxplot_fromstats (https://kr.mathworks.com/matlabcentral/fileexchange/119888-boxplot_fromstats), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2022b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
버전 게시됨 릴리스 정보
1.0.0