Tiled layout with boxplot and 'Padding', 'none'
Mostra commenti meno recenti
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 Commenti
Kevin Joshi
il 17 Giu 2020
Suggestion: Use tight_subplot
https://in.mathworks.com/matlabcentral/fileexchange/27991-tight_subplot-nh-nw-gap-marg_h-marg_w
Matt J
il 16 Apr 2021
'Padding'='none' is not a documented setting. The choices are either 'loose','compact', or 'tight'.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Data Distribution Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
