Grids of tiled chart layouts

Version 1.1.3 (1.39 KB) by Matt J
A tool for simplifying the creation of nested tiled layouts
Updated 28 Mar 2024

View License

Very often, I see people with plotting tasks that can be accomplished with a nesting of tiled chart layouts, but the syntax required for this can seem somewhat acrobatic. I've therefore created this submission to simplify the creation of (outer) tiled layouts whose tiles contain smaller (inner) tiled layouts.
What it does is let you specify the dimensions and nesting structure of the layouts in advance. It will then set-up the layout with empty axes, adn return handles to the axes and to the inner and outer layouts.You can then just loop over the axes handles with either 1D or 4D indexing and populate the axes with their actual intended contents. Furthermore, the tiled layout handles provided by the code let you add shared elements like legends and axis labels.
Example: A 3x1 set of tiles each containing a 2x6 tiled layout
for i=1:numel(ax) %populate all 24 axes with plot data
for i=1:numel(t) %Give each outer tile its own ylabel
ylabel(t(i),"ylabel No. "+i);
sgtitle(T, "Tiled Layout") %Global Title

Cite As

Matt J (2024). Grids of tiled chart layouts (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Bug fix. Axes handles were in the wrong order


Title update


Title change


Description update.