Compact subplot

24 views
Skip to first unread message

Hiho

unread,
Mar 31, 2008, 8:58:58 PM3/31/08
to MathTools
function compact_subplot(nrow, ncol, np)
%This function produce more compact subplot figures.


c = rem(np-1, ncol)+1;
r = floor((np-1)/ncol);

axes('Position', [(c-1)/ncol, 1-(r+1)/nrow, 1/ncol, 1/nrow]);
Reply all
Reply to author
Forward
0 new messages