File Exchange

image thumbnail

subplotHelper

version 1.0.1 (2.46 KB) by Frederick Zittrell
Helps with organizing and referring to SUBPLOT axes with an interactive grid tile chooser.

1 Download

Updated 08 May 2019

View License

This simple class helps with using SUBPLOT(M, N, P) by showing the SUBPLOT grid
that will be created. The user can interactively choose the grid tiles that should
be used for each axes by brushing the displayed rectangles. The property 'p' then
holds a two-column matrix where each row is the P-input to each axes in the
SUBPLOT for the respective grid part.

Example:

m = 4; % rows
n = 6; % columns
p = subplotHelper(m, n).getP; % open grid tile chooser, close figure to continue

figure
x = -5:0.1:5;
for iP = 1:size(p, 1)
ax = subplot(m, n, p(iP, :));
plot(ax, x, sin(x)+randn(size(x)));
end

Cite As

Frederick Zittrell (2019). subplotHelper (https://www.mathworks.com/matlabcentral/fileexchange/71369-subplothelper), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

Updates

1.0.1

Update required MATLAB version

MATLAB Release Compatibility
Created with R2019a
Compatible with R2017a to any release
Platform Compatibility
Windows macOS Linux