Tiled layout with boxplot and 'Padding', 'none'
이전 댓글 표시
When using 'Padding','none' for my tiled layout. The box plots are not centered and are cropped inside the figure.
figure
t = tiledlayout(1,2, 'Padding', 'none');
nexttile;
boxplot(randn(10,5));
nexttile;
boxplot(randn(10,5));
Result:

Why is that and how to solve it?
댓글 수: 2
Kevin Joshi
2020년 6월 17일
Suggestion: Use tight_subplot
https://in.mathworks.com/matlabcentral/fileexchange/27991-tight_subplot-nh-nw-gap-marg_h-marg_w
Matt J
2021년 4월 16일
'Padding'='none' is not a documented setting. The choices are either 'loose','compact', or 'tight'.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
