Tiled layout with boxplot and 'Padding', 'none'
Afficher commentaires plus anciens
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 commentaires
Kevin Joshi
le 17 Juin 2020
Suggestion: Use tight_subplot
https://in.mathworks.com/matlabcentral/fileexchange/27991-tight_subplot-nh-nw-gap-marg_h-marg_w
Matt J
le 16 Avr 2021
'Padding'='none' is not a documented setting. The choices are either 'loose','compact', or 'tight'.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Data Distribution Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
