cbgridplot
Description:
Create a subplot (template) with a common / shared colorbar. Fill with data or modify it as you wish using the returned handles.
Usage:
[hf, axLabel, axPlot, cb] = cbgridplot(nRow, nCol, varargin)
Examples:
cbgridplot(3, 4) will produce a figure with 12 subplots across 3 rows and 4 columns with a shared colorbar.
cbgridplot(3,2,'title','this is a test','xlabel','x-axis label','ylabel','y-axis label') will produce a figure with 6 subplots across 3 rows and 2 columns with grid('on') and a global title.
Cite As
Jan Grüner (2024). cbgridplot (https://www.mathworks.com/matlabcentral/fileexchange/69630-cbgridplot), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Combine Multiple Plots > Subplots >
Tags
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.