smplot for small multiples
Updated Fri, 11 Sep 2015 18:52:49 +0000
This function behaves like subplot, but sets figure margins to zero and leaves no space between subplots unless requested by the user. This is similar to other submissions on FEX including tight subplot and subaxis. Those are good functions, so be sure to check them out. In reviewing subaxis and tight subplot it looks like they may offer more options for spacing, but this one might be a little simpler to use. Try 'em all and see what works best for you.
The name smplot comes from Edward Tufte's small multiples.
Chad Greene (2023). smplot for small multiples (https://www.mathworks.com/matlabcentral/fileexchange/52978-smplot-for-small-multiples), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Combine Multiple Plots > Subplots >
Inspired by: Subaxis - Subplot, tight_subplot(Nh, Nw, gap, marg_h, marg_w), Controllable tight subplot, subtightplot
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.