Code covered by the BSD License  

Highlights from

image thumbnail




21 May 2008 (Updated )

Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

% You can repack Panels from the command line.
% (a) Create a grid of panels, and show something in them.
% (b) Repack some of them, as if at the command line.

%% (a)

% create a 2x2 grid in gcf.
p = panel();
p.pack(2, 2);

% have a look at p - all the child panels are currently
% uncommitted

% commit all the uncommitted panels as axis panels'all');

%% (b)

% during development of a layout, you might find repack()
% useful.

% repack one of the rows in the root panel

% repack one of the columns in one of the rows
p(1, 1).repack(0.3);

% remember, you can always get a summary of the layout by
% looking at the root panel in the command window

Contact us