Rank: 194016 based on 0 downloads (last 30 days) and 0 file submitted
photo

Matthias

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Matthias View all
Updated File Comments Rating
12 Mar 2013 Subaxis - Subplot Use HTML jargon for multi axis layout. Author: Aslak Grinsted

I could restore the subplot(2,2,[1 3]) behaviour by changing the case 1 in the switch length(Args.NumericArguments) block (line 64) to this:

if numel(Args.NumericArguments{1}) == 2 % restore subplot(m,n,[x y]) behaviour
[x1 y1] = ind2sub([Args.cols Args.rows],Args.NumericArguments{1}(1)); % subplot and ind2sub count differently (column instead of row first) --> switch cols/rows
[x2 y2] = ind2sub([Args.cols Args.rows],Args.NumericArguments{1}(2));
else
x1=mod((Args.NumericArguments{1}-1),Args.cols)+1; x2=x1;
y1=floor((Args.NumericArguments{1}-1)/Args.cols)+1; y2=y1;
end

12 Mar 2013 Subaxis - Subplot Use HTML jargon for multi axis layout. Author: Aslak Grinsted

Contact us