Is there a way to leave a blank space using the tiledlayout function?
71 views (last 30 days)
Show older comments
Ruairí DIllon
on 28 Feb 2022
Commented: Ruairí DIllon
on 28 Feb 2022
I am trying to display a number of plots, with a particular arrangement. This arrangement means that there will be some blank spaces between different plots. Is there a way which this is possible in MATLAB?
0 Comments
Accepted Answer
Simon Chan
on 28 Feb 2022
Below shows an example where the plot appears on position 1,2,6,7,11 & 12 for a 3x4 layout.
tiledlayout(3,4,'TileSpacing','compact','Padding','compact');
pos = [1 2 6 7 11 12];
for k = 1:length(pos)
nexttile(pos(k));
plot(1:10,randi(10,1,10));
grid on;
end
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!