You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
712 B
Matlab

function maxsubplot(rows,cols,ind,fac)
%Create subplots that are much larger than that produced by the standard subplot command,
%Good for plots with no axis labels, tick labels or titles.
%*NOTE*, unlike subplot new axes are drawn on top of old ones; use clf first
%if you don't want this to happen.
%*NOTE*, unlike subplot the first axes are drawn at the bottom-left of the
%window.
if nargin<4, fac=0.05; end
%axes('Position',[fix((ind-1)/rows)/cols,rem(ind-1,rows)/rows,0.95/cols,0.95/rows]);
axes('Position',[(fac/2)/cols+rem(min(ind)-1,cols)/cols,(fac/2)/rows+fix((min(ind)-1)/cols)/rows,(length(ind)-fac)/cols,(1-fac)/rows]);
% axis('equal','tight'); set(gca,'XTick',[],'YTick',[]); colormap('gray');